示例#1
0
    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);
    }
示例#2
0
 public void ResetLevel()
 {
     trapController.Reset();
     nodeController.Reset();
 }