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