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