Exemplo n.º 1
0
    public override void DoAction()
    {
        switch (ScelteFatte[0].UniqueID)
        {
        case "Restart":
            SceneManager.LoadScene("TestPlayerScene");
            break;

        case "Back To Menu":
            SceneManager.LoadScene("MainMenu");
            break;

        case "Exit":
            Application.Quit();
            break;

        case "Resume":
            GameManager.I.NormalTime();
            break;

        case "Credits":
            SceneManager.LoadScene("Credits");
            break;

        default:
            break;
        }
        if (MenuImageToLoad.enabled == true)
        {
            MenuImageToLoad.enabled = false;
        }
        Time.timeScale = 1;
        ScelteFatte.Clear();
        Show(false);
    }
Exemplo n.º 2
0
    public override void DoAction()
    {
        switch (ScelteFatte[0].UniqueID)
        {
        case "Restart":
            SceneManager.LoadScene("TestPlayerScene");
            break;

        case "Back To Menu":
            SceneManager.LoadScene("MainMenu");
            break;

        case "Credits":
            SceneManager.LoadScene("Credits");
            break;

        case "LeaderBoard":
            break;

        default:
            break;
        }
        Time.timeScale = 1;
        ScelteFatte.Clear();
        Show(false);
    }
Exemplo n.º 3
0
 /// <summary>
 /// Chiude il menù.
 /// </summary>
 public void Close()
 {
     Show(false);
     ScelteFatte.Clear();
 }
 public override void DoAction()
 {
     CurrentPlayer.AddPopulation(ScelteFatte[1] as BuildingData, ScelteFatte[0].UniqueID);
     ScelteFatte.Clear();
     Show(false);
 }