Beispiel #1
0
 public void OnButtonClick()
 {
     if (!isBlock)
     {
         SaveLoadXML.DeleteGameXML();
         SceneManager.LoadScene(1);
     }
 }
Beispiel #2
0
 public void CharacterComplete()
 {
     GameData.current.AddCharacterCompleted(GameData.current.currentCharacterID);
     SaveLoadXML.SaveGameDataXML();
     SaveLoadXML.DeleteGameXML();
     Reset();
     ScreenManager.Instance.CreateScreen("EndGamePanel");
 }
    public void ShowAlert(int type)
    {
        //HintPanel.SetActive (true);
        int locale = 971 + type;

        ScreenManager.Instance.CreateScreen("HintPanel");
        ScreenManager.Instance.current.GetComponent <Hint>().ShowDialog(Localization.Instance.GetLocale(locale), Localization.Instance.GetLocale(973), (confirm) => {
            if (confirm)
            {
                SaveLoadXML.DeleteGameXML();
                PlayerInfo.Instance.Reset();
                ShowCharacterData(character_id, true);
                if (type == 0)
                {
                    LoadScene(2);
                }
            }
        });
    }