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); } }
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()); } }
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); } }
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()); } }