public void ResetData() { WwiseInterface.Instance.PlayMenuSound(MenuHandle.ForwardButtonPressed); HubDataManager.ResetHubData(); PlayerPrefs.DeleteAll(); SceneManager.LoadScene(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"); }
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; }