|
@@ -67,7 +67,7 @@ public class DialogueManager : Singleton<DialogueManager>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- private void PlayDialogue(int dialogueID)
|
|
|
|
|
|
+ private async void PlayDialogue(int dialogueID)
|
|
{
|
|
{
|
|
currentDialogueID = dialogueID;
|
|
currentDialogueID = dialogueID;
|
|
|
|
|
|
@@ -113,6 +113,20 @@ public class DialogueManager : Singleton<DialogueManager>
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ //处理前置表现
|
|
|
|
+ if (dialogueConfig.PreShow == 1)
|
|
|
|
+ {
|
|
|
|
+ UIManager.Instance.HindCurrAllShowPanel();
|
|
|
|
+ CombatDrive.Instance.CombatController.ChangeState(CombatController.update);
|
|
|
|
+ CombatController.currActiveCombat.CombatHeroController.Flight(dialogueConfig.PreShowPar, -90, 10);
|
|
|
|
+ UIManager.Instance.SetEventSystemEnable(false);
|
|
|
|
+ await TimerComponent.Instance.WaitAsync(dialogueConfig.PreShowPar * 1000 + 700);
|
|
|
|
+ CombatDrive.Instance.CombatController.ChangeState(CombatController.idle);
|
|
|
|
+ UIManager.Instance.SetEventSystemEnable(true);
|
|
|
|
+ UIManager.Instance.ShowLastHindAllShowPanel();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
AccountFileInfo.Instance.SavePlayerData();
|
|
AccountFileInfo.Instance.SavePlayerData();
|
|
|
|
|
|
//挂机事件 弹出简单气泡对话
|
|
//挂机事件 弹出简单气泡对话
|
|
@@ -362,6 +376,7 @@ public class DialogueManager : Singleton<DialogueManager>
|
|
{
|
|
{
|
|
CurrentEventList.itemInfos.Add(itemInfo.ToItemData());
|
|
CurrentEventList.itemInfos.Add(itemInfo.ToItemData());
|
|
}
|
|
}
|
|
|
|
+
|
|
AccountFileInfo.Instance.SavePlayerData();
|
|
AccountFileInfo.Instance.SavePlayerData();
|
|
// RewardsPanel rewardsPanel = await RewardsPanel.OpenPanel(rewardsDic, onClose, titleId);
|
|
// RewardsPanel rewardsPanel = await RewardsPanel.OpenPanel(rewardsDic, onClose, titleId);
|
|
// await rewardsPanel.UIClosed();
|
|
// await rewardsPanel.UIClosed();
|