| | |
| | |
|
| | | private void AutoPlayVoice()
|
| | | {
|
| | | if (voicePlaying || WindowCenter.Instance.CheckOpen<LoadingWin>()
|
| | | if (voicePlaying || WindowCenter.Instance.IsOpen<LoadingWin>()
|
| | | || !(StageManager.Instance.CurrentStage is DungeonStage))
|
| | | {
|
| | | return;
|
| | |
| | |
|
| | | private void CheckChatFloatOpen()
|
| | | {
|
| | | if (WindowCenter.Instance.ExitAnyFullScreenOrMaskWin() && !WindowCenter.Instance.CheckOpen<LoadingWin>()
|
| | | && StageManager.Instance.CurrentStage is DungeonStage && !WindowCenter.Instance.CheckOpen<TreasureLevelUpWin>())
|
| | | if (WindowCenter.Instance.ExitAnyFullScreenOrMaskWin() && !WindowCenter.Instance.IsOpen<LoadingWin>()
|
| | | && StageManager.Instance.CurrentStage is DungeonStage && !WindowCenter.Instance.IsOpen<TreasureLevelUpWin>())
|
| | | {
|
| | | if (!WindowCenter.Instance.CheckOpen<ChatFloatWin>())
|
| | | if (!WindowCenter.Instance.IsOpen<ChatFloatWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<ChatFloatWin>();
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | if (WindowCenter.Instance.CheckOpen<ChatFloatWin>())
|
| | | if (WindowCenter.Instance.IsOpen<ChatFloatWin>())
|
| | | {
|
| | | WindowCenter.Instance.CloseImmediately<ChatFloatWin>();
|
| | | }
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | if (!WindowCenter.Instance.CheckOpen<MainInterfaceWin>()
|
| | | if (!WindowCenter.Instance.IsOpen<MainInterfaceWin>()
|
| | | || WindowCenter.Instance.ExitAnyFullScreenOrMaskWin()
|
| | | || StageManager.Instance.isLoading
|
| | | || NewBieCenter.Instance.inGuiding)
|
| | |
| | | return;
|
| | | }
|
| | | openChatAfterCollect = false;
|
| | | if (!WindowCenter.Instance.CheckOpen<ChatWin>())
|
| | | if (!WindowCenter.Instance.IsOpen<ChatWin>())
|
| | | {
|
| | | ChatCtrl.Inst.presentChatType = ChatInfoType.Fairy;
|
| | | WindowCenter.Instance.Open<ChatWin>();
|