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