Esempio n. 1
0
 public void OnPlayAgainClicked()
 {
     ProgressController.SaveProgress();
     ProgressController.CreateNewPlayer();
     gameFinishedPanel.SetActive(false);
     AppController.instance.SetState(ApplicationStates.StartMenu);
     Debug.Log("Restart : Old Character saved as finished, new character created to play from begin.");
 }
Esempio n. 2
0
    public void OnCreateButtonClicked()
    {
        ProgressController.CreateNewPlayer();

        LoadPlayerList();

        if (GameObject.FindGameObjectWithTag("PlayerListScrollBar") != null)
        {
            GameObject.FindGameObjectWithTag("PlayerListScrollBar").GetComponent <Scrollbar>().value = 0f;
        }
    }
Esempio n. 3
0
    //Play Button event on Start Menu Screen
    public void OnGoButtonClicked()
    {
        if (AppController.instance.currentPlayer != null && AppController.instance.allPlayerProgressData.playersList.Count > 0)
        {
            AppController.instance.SetState(ApplicationStates.StoryMap);
        }
        else
        {
            ProgressController.CreateNewPlayer();

            AppController.instance.SetState(ApplicationStates.StoryMap);

            Debug.Log("No Characted Found - New Character Created and Saved Automatically.");
        }
    }