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