public void resultWindowOpen(bool isSuccess) { _currentGameState = eGameState.RESULT; GameObject go = Instantiate(_prefabsResultWindow); ResultWindowScript Rwnd = go.GetComponent <ResultWindowScript>(); Rwnd.OpenWindow(isSuccess, _TotalScore); Scene_Manager_Script.instance.HighScoreSave(stageNum, _TotalScore); }
void Awake() { instance = this; }