Esempio n. 1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else if (Instance != null && Instance != this)
     {
         Destroy(this.gameObject);
     }
 }
Esempio n. 2
0
 private void Awake()
 {
     _state   = CardState.Opened;
     _manager = GameObject.FindGameObjectWithTag("MemoryGameManager").GetComponent <MemoryGameManager>();
 }