示例#1
0
    public void InitStory(Dialogue[] dialogues, ExploreCat user, ExploreCat[] enemies)
    {
        userCatRef   = user;
        enemyCatRefs = enemies;
        Debug.Log("init story with " + userCatRef.cat.Name + " as NONE.");

        Dialogues = DataUtils.AdjustCosmetics(dialogues, userCatRef.cat.catType);
        if (dialogues == null || dialogues.Length == 0)
        {
            End();
            return;
        }
        currSpeakerIndex  = 0;
        currDialogueIndex = 0;
        gameObject.SetActive(true);
        setNewCharUI();
    }