2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2025-02-24 11:17:11 +00:00

add error check

This commit is contained in:
in0finite 2021-02-20 22:54:25 +01:00
parent 18504422f1
commit 97e09134bd

View file

@ -1,4 +1,5 @@
using UnityEngine;
using SanAndreasUnity.Utilities;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace SanAndreasUnity.Net
@ -8,6 +9,11 @@ namespace SanAndreasUnity.Net
[SerializeField] private GameObject m_syncedServerDataPrefab = null;
private void Awake()
{
m_syncedServerDataPrefab.GetComponentOrLogError<SyncedServerData>();
}
private void Start()
{
NetManager.Instance.onServerStatusChanged += OnServerStatusChanged;