void reCreate() { LevelManager.isAlive = true; Destroy(GameObject.FindGameObjectWithTag("explosion")); helice.SetActive(true); player.GetComponent <Transform>().position = new Vector3(0f, 0f, 90f); LevelTime aux = GameObject.FindObjectOfType <LevelTime>(); aux.reset(); }
public void restart() { LevelManager.levelFinish = false; LevelManager.isAlive = true; //SceneManager.LoadScene ("GameScene"); LevelManager.changeScene = true; LevelManager.startTime = false; LevelTime aux = GameObject.FindObjectOfType <LevelTime>(); aux.reset(); }