Exemplo n.º 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);
     }
 }
Exemplo n.º 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());
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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());
     }
 }