Beispiel #1
0
    void EndDialogue()
    {
        if (fromUI != null)
        {
            fromUI.FinishSupportConversation();
        }

        gameObject.SetActive(false);

        if (restController != null)
        {
            restController.ChangeState <MenuState>();
        }
        else if (battleController != null)
        {
            battleController.ChangeState <SelectUnitState>();
        }

        if (fromUI != null)
        {
            fromUI.UpdateRelationshipUI();
        }
        fromUI = null;

        if (rank != RelationshipRank.SPICY)
        {
            GameInformation.instance.SetBGMVolume(1f);
        }
        else
        {
            GameInformation.instance.PlayMenu();
        }
    }
Beispiel #2
0
    void EndDialogue()
    {
        if (fromUI != null)
        {
            fromUI.FinishSupportConversation();
        }

        gameObject.SetActive(false);

        if (restController != null)
        {
            restController.ChangeState <MenuState>();
        }
        else if (battleController != null)
        {
            battleController.ChangeState <SelectUnitState>();
        }

        if (fromUI != null)
        {
            fromUI.UpdateRelationshipUI();
        }
        fromUI = null;
    }
Beispiel #3
0
 public void StartDialogue(List <DialogueLine> lines, RelationshipUI from, RelationshipRank rank, UnitPair pair)
 {
     dialogueManager.StartDialogue(lines, rank, pair);
     dialogueManager.fromUI = from;
     controller.ChangeState <DialogueState>();
 }