public void newGame() { // Gets the spawn point of Lark, and acquires Lark himself. lark = GameObject.Find("Player"); larkScript = (Lark)lark.GetComponent(typeof(Lark)); spawnPoint = GameObject.Find("Story Spawn 1"); respawnX = spawnPoint.transform.position.x; respawnY = spawnPoint.transform.position.y; // Gets the pause screen script. pScreen = (PauseScreen)GameObject.Find("Pause Screen").GetComponent(typeof(PauseScreen)); // Gets the mask that exists in the game. mask = GameObject.Find("Mask"); // Gets the dialogue handler. dHandler = (DialogueHandler)GameObject.Find("Textbox").GetComponent(typeof(DialogueHandler)); // Gets the character handler. cHandler = (CharacterHandler)GameObject.Find("Characters").GetComponent(typeof(CharacterHandler)); // If a new game, sets all stages to zero initially. for (int i = 0; i < 50; i++) { stages [i] = 0; } // DEBUG PURPOSES. items.Add(new Herb()); }