// Re-initialize everything! public void StartNewSpell (string spellType = null) { winBox.GetComponent<Canvas>().enabled = false; loseBox.GetComponent<Canvas>().enabled = false; isStarted = false; curSpell = null; spellList = GameObject.Find ("SpellList").GetComponent<SpellList> (); spellList.Reset (); ShowInstructions (); }
// Re-initialize everything! public void StartNewSpell(string spellType = null) { winBox.GetComponent <Canvas>().enabled = false; loseBox.GetComponent <Canvas>().enabled = false; isStarted = false; curSpell = null; spellList = GameObject.Find("SpellList").GetComponent <SpellList> (); spellList.Reset(); ShowInstructions(); }