Example #1
0
 public static GUIOver Instance()
 {
     if (instance == null)
     {
         instance = new GUIOver();
     }
     return(instance);
 }
Example #2
0
    void GameDone(GameDoneState state)
    {
        switch (state)
        {
        case GameDoneState.GameOver:
            Target.GetFSM().ChangeState(GUIOver.Instance());
            break;

        case GameDoneState.GameWin:
            Target.GetFSM().ChangeState(GUIWin.Instance());
            break;
        }
    }
Example #3
0
 public void RetryBtn(GameObject go)
 {
     playTween.onFinished.Clear();
     EventDelegate.Add(playTween.onFinished, GUIOver.Instance().RetryBtnClick, true);
     playTween.Play(false);
 }