예제 #1
0
 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>();
     }
 }
예제 #2
0
 void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         _instance = this;
     }
 }