private void ReadyUI() { playerHud = Instantiate(Resources.Load <PlayerHUD>("_Prefabs/UI/Player HUD")); playerHud.SetUp(ref TeamSummonList); playerHud.gameObject.SetActive(false); resultUI = Instantiate(Resources.Load <Dungeon_BattleResultPopUp>("_Prefabs/UI/BattleResult PopUp")); resultUI.gameObject.SetActive(false); waveCountUI = Instantiate(Resources.Load <WaveCount>("_Prefabs/UI/Wave UI")); waveCountUI.SetUp(stageData.waveCount); waveCountUI.gameObject.SetActive(false); var obj = Instantiate(Resources.Load <Dungeon_BattleStartPopUp>("_Prefabs/UI/StageProgress PopUp HUD")); obj.Progress(); }
void Awake() { instance = this; }