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:
parent
18504422f1
commit
97e09134bd
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue