예제 #1
0
 public void ResetData()
 {
     WwiseInterface.Instance.PlayMenuSound(MenuHandle.ForwardButtonPressed);
     HubDataManager.ResetHubData();
     PlayerPrefs.DeleteAll();
     SceneManager.LoadScene(0);
 }
예제 #2
0
    public void Play()
    {
        WwiseInterface.Instance.PlayMenuSound(MenuHandle.PlayButtonPressed);
        HubDataManager.ResetHubData();

        PlayerPrefs.SetInt("AttackLevel", 0);
        PlayerPrefs.SetInt("TauntLevel", 0);
        PlayerPrefs.SetInt("OverreactLevel", 0);

        StartCoroutine("LoadLevel", "Introlevel");
    }
예제 #3
0
    public IEnumerator Win()
    {
        this.gameObject.GetComponent <DialogObject>().StartCoroutine("DialogSystem", 11);
        end.SetActive(true);
        skipBtn.SetActive(false);
        yield return(new WaitForSeconds(8f));

        HubDataManager.ResetHubData();

        ResetData();

        winScreen.SetActive(true);
        StaticData.Reputation = StaticData.MaxReputation;
    }