private void Start() { gm = GameManager.getInstance(); pm = PlayerManager.getInstance(); em = EnemiesManager.getInstance(); wsm = WaveSpawnerManager.getInstance(); gm.AIStartTurnEvent += takeTurn; initReferences(); }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }