Exemple #1
0
    public override void OnClickButton(string str)
    {
        switch (str)
        {
        case "Pause":
            gameStarter.GamePause();
            break;

        case "Continue":
            gameStarter.GamePause();
            break;

        case "Stop":
            GameManager.Instance.SceneMode = GameManager.SceneTypes.LobbyScene;
            break;

        case "Result":
            // 결과 저장
            Time.timeScale = 1f;
            EventManager.Notify(EventList.SCORESAVE, (long)(gameStarter.GetPlayerDistance()));
            GameManager.Instance.SceneMode = GameManager.SceneTypes.LobbyScene;
            break;

        case "OneJump":             // Debug.Log("OneJump Click");
            gameStarter.GetPlayer().GetComponent <FunKi>().OneJump();
            break;

        case "TwoJump":             // Debug.Log("TwoJump Click");
            gameStarter.GetPlayer().GetComponent <FunKi>().TwoJump();
            break;

        default:
            return;
        }
    }