public static GUIOver Instance() { if (instance == null) { instance = new GUIOver(); } return(instance); }
void GameDone(GameDoneState state) { switch (state) { case GameDoneState.GameOver: Target.GetFSM().ChangeState(GUIOver.Instance()); break; case GameDoneState.GameWin: Target.GetFSM().ChangeState(GUIWin.Instance()); break; } }
public void RetryBtn(GameObject go) { playTween.onFinished.Clear(); EventDelegate.Add(playTween.onFinished, GUIOver.Instance().RetryBtnClick, true); playTween.Play(false); }