Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     DontDestroyOnLoad(this);
     DontDestroyOnLoad(GameObject.FindGameObjectWithTag("Canvas"));
     GameManager.instance = this;
     StartCoroutine(Health.FuelEmpty());
     SceneManager.sceneLoaded += StartLevel;
     StartCoroutine(LoadLevel("Random Map", 0f, 1f));
 }