public void NewGame() { PlayerPrefs.SetInt("Int", 0); Persistence.ResetGame(); PlayerPrefs.SetString("_sceneName", NovoJogo); LoadingSisten.LoadLevel(NextCenaName); }
public void IntroNextScene() { if (timeStart <= 26) { PlayerPrefs.SetString("_sceneName", NextCenaName); LoadingSisten.LoadLevel(NextCenaName); } }
IEnumerator DeathAnim() { PlayerAnim.SetBool("Morto", true); yield return(new WaitForSeconds(2.0f)); PlayerPrefs.SetString("_sceneName", NextCenaName); LoadingSisten.LoadLevel(NextCenaName); }
private void OnTriggerEnter(Collider col) { if (col == coll01 || col == coll02 || col == coll03 || col == coll04) { Debug.Log("Collision"); if (PlayerHealth <= 0) { PlayerPrefs.SetString("_sceneName", NextCenaName); LoadingSisten.LoadLevel(NextCenaName); } } }
// Update is called once per frame void Update() { Attack(); if (Morte == true) { TimeAnimation += Time.deltaTime; if (TimeAnimation >= 0.7f) { PlayerPrefs.SetInt("SlimesMortos", 3); PlayerPrefs.SetString("_sceneName", NextCenaName); LoadingSisten.LoadLevel(NextCenaName); } } }
void EndReached(UnityEngine.Video.VideoPlayer vp) { PlayerPrefs.SetString("_sceneName", NextCenaName); LoadingSisten.LoadLevel(NextCenaName); }
public void NextScene() { PlayerPrefs.SetString("_sceneName", NextCenaName); LoadingSisten.LoadLevel(NextCenaName); }