protected override void Awake() { base.Awake(); viewController = GameObject.FindGameObjectWithTag("Controllers").GetComponent <ViewController>(); dialogueController = GameObject.FindGameObjectWithTag("Controllers").GetComponent <DCLevel>(); lifeController = GameObject.FindGameObjectWithTag("Controllers").GetComponent <LifeController>(); }
public void RestartLevel() { dialogueController = GameObject.FindGameObjectWithTag("Controllers").GetComponent <DCLevel>(); if (!dialogueController.Displaying()) { lifeController = GameObject.FindGameObjectWithTag("Controllers").GetComponent <LifeController>(); HideMenu(); lifeController.RestartLevel(); } }