public void EndStory() { if (currentStory == null) { return; } player.EnableInputs(); player.GetRadialMenuController.Unlock(currentStory.unlocksAnimal); textPanel.text = string.Empty; panel.SetActive(false); isTellingStory = false; isTyping = false; index = 0; currentStory = null; }
public void StartStory(StoryScriptable story) { if (isTellingStory) { return; } if (player.IsDoingSomething()) { return; } player.DisableInputs(); isTellingStory = true; index = 0; currentStory = story; animalIcon.sprite = GetImage(story.unlocksAnimal); panel.SetActive(true); Next(); }