Esempio n. 1
0
    protected void OnContinueGame(UIButtonPassivePlayAnimation btn)
    {
        if (isCurrentSavedDataEmtpy() == false && state == SavedGameStateType.None)
        {
            Debug.Log("continue game");

            btn.Play();
            state = SavedGameStateType.ContinueGame;
        }
    }
Esempio n. 2
0
 protected void OnNewGame(UIButtonPassivePlayAnimation btn)
 {
     if (isCurrentSavedDataEmtpy() && state == SavedGameStateType.None)
     {
         int selectedIndex = GetSelectedButtonIndex();
         GameData.current.NewGame(selectedIndex);
         GameData.Save();
         Debug.Log("new game");
         btn.Play();
         state = SavedGameStateType.NewGame;
     }
 }
    protected void OnContinueGame(UIButtonPassivePlayAnimation btn)
    {
        if (isCurrentSavedDataEmtpy() == false && state == SavedGameStateType.None)
        {
            Debug.Log("continue game");

            btn.Play();
            state = SavedGameStateType.ContinueGame;
        }
    }
 protected void OnNewGame(UIButtonPassivePlayAnimation btn)
 {
     if (isCurrentSavedDataEmtpy() && state == SavedGameStateType.None)
     {
         int selectedIndex = GetSelectedButtonIndex();
         GameData.current.NewGame(selectedIndex);
         GameData.Save();
         Debug.Log("new game");
         btn.Play();
         state = SavedGameStateType.NewGame;
     }
 }