Example #1
0
 private void Start()
 {
     storyManager = FindObjectOfType<StoryManager>();
     if (storyManager == null) {
         Debug.LogError("Can't find StoryManager on the Dialogue Manager GameObject!");
     }
     if (menuPanel == null) {
         Debug.LogError("The menu panel isn't assigned to StoryMenu!", this);
     } else {
         menuPanel.SetActive(false);
     }
 }
Example #2
0
 private void Start()
 {
     storyManager = FindObjectOfType<StoryManager>();
     if (storyManager == null) {
         Debug.LogError("Can't find StoryManager on the Dialogue Manager GameObject!");
         return;
     }
     if (continueButton == null) {
         Debug.LogError("The continue button isn't assigned to TitleMenu!", this);
     } else {
         continueButton.gameObject.SetActive(storyManager.HasSavedGame());
     }
 }
Example #3
0
 private void Start()
 {
     storyManager = FindObjectOfType <StoryManager>();
     if (storyManager == null)
     {
         Debug.LogError("Can't find StoryManager on the Dialogue Manager GameObject!");
     }
     if (menuPanel == null)
     {
         Debug.LogError("The menu panel isn't assigned to StoryMenu!", this);
     }
     else
     {
         menuPanel.SetActive(false);
     }
 }
Example #4
0
 private void Start()
 {
     storyManager = FindObjectOfType <StoryManager>();
     if (storyManager == null)
     {
         Debug.LogError("Can't find StoryManager on the Dialogue Manager GameObject!");
         return;
     }
     if (continueButton == null)
     {
         Debug.LogError("The continue button isn't assigned to TitleMenu!", this);
     }
     else
     {
         continueButton.gameObject.SetActive(storyManager.HasSavedGame());
     }
 }