public void ResetLevel() { onPause = false; cameraMove.SetModeNormal(); ObjectsInstanciateScript.RemoveAll(); ReorganiseLevel(); Player.inventory.Clear(); levelScript.Init(); FillPlayerTab(); player.Init(); }
public void DestroyLevel() { for (int i = levelScript.tribunesRedList.Count - 1; i >= 0; i--) { Destroy(levelScript.tribunesRedList[i]); } for (int i = levelScript.tribunesBlueList.Count - 1; i >= 0; i--) { Destroy(levelScript.tribunesBlueList[i]); } Destroy(level.gameObject); Player.inventory.Clear(); ObjectsInstanciateScript.RemoveAll(); player.SetModeVoid(); timeManager.SetModeVoid(); cameraMove.SetModeVoid(); cameraMove.test = true; }