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