private void Awake() { if (_instance == null) { _instance = this; } else if (_instance != this) { Destroy(gameObject); } noteControl = FindObjectOfType <NoteControl> (); uiControl = FindObjectOfType <UIControl_Battle> (); setPlayerData(FindObjectOfType <PlayerData_Battle> ().GetPlayerData()); FindObjectOfType <LevelController> ().SetEnemy(); OnBattleStart += SetNewTurn; OnBattleStart += CallOnGetPhase; OnBattleStart += BattleStart; onBattleDone += BattleEnd; OnEnemyDeath += SetNewTurn; }
private void Awake() { dropControler = FindObjectOfType <LootDropControler> (); ui = FindObjectOfType <UIControl_Battle> (); InitialData(LevelLoader.getLevelData()); }