void GetReferences() { if (Mng_SyncVar == null) { Mng_SyncVar = GameObject.FindGameObjectWithTag("Mng_SyncVar"); } if (Mng_SyncVar != null && sc_syncvar == null) { sc_syncvar = Mng_SyncVar.GetComponent <SC_SyncVar_DisplaySystem>(); } }
void Awake() { if (_instance != null && _instance != this) { Destroy(gameObject); } else { _instance = this; } }