コード例 #1
0
    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;
    }
コード例 #2
0
    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();
    }