void ResetGame() { foreach (GameObject trap in traps) { TrapController control = trap.GetComponent <TrapController>(); control.Reset(); } foreach (var storyitem in storyItems) { storyitem.Reset(); } StoryTextBoxController.Reset(); gameState = State.Running; GameOverText.SetActive(false); GameWonText.SetActive(false); Player.transform.position = PlayerStartPosition; Player.SetActive(true); }
public void ResetLevel() { trapController.Reset(); nodeController.Reset(); }