| | |
| | | }
|
| | | satisfyStep = SatisfyBossShowStep(actorShowModel);
|
| | | SaveBossShowStep(actorShowModel);
|
| | | if (actorShowModel.BindMissionID != 0)
|
| | | {
|
| | | MissionDetailDates missionDetailDates = null;
|
| | | taskmodel.allMissionDict.TryGetValue(actorShowModel.BindMissionID, out missionDetailDates);
|
| | | if (missionDetailDates == null || missionDetailDates.MissionState != 1)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (GetMisstionShow(actorShowModel.BindMissionID))
|
| | | {
|
| | | return;
|
| | | }
|
| | | SetMisstionShow(actorShowModel.BindMissionID);
|
| | | }
|
| | | //if (actorShowModel.BindMissionID != 0)
|
| | | //{
|
| | | // MissionDetailDates missionDetailDates = null;
|
| | | // taskmodel.allMissionDict.TryGetValue(actorShowModel.BindMissionID, out missionDetailDates);
|
| | | // if (missionDetailDates == null || missionDetailDates.MissionState != 1)
|
| | | // {
|
| | | // return;
|
| | | // }
|
| | | // if (GetMisstionShow(actorShowModel.BindMissionID))
|
| | | // {
|
| | | // return;
|
| | | // }
|
| | | // SetMisstionShow(actorShowModel.BindMissionID);
|
| | | //}
|
| | | if (BossShowing && StageLoad.Instance.currentStage is DungeonStage)
|
| | | {
|
| | | return;
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | public void ReceivePackage(H0823_tagDelMission vNetData)
|
| | | {
|
| | | if (DTC0403_tagPlayerLoginLoadOK.finishedLogin)
|
| | | {
|
| | | var configs = ActorShowConfig.GetValues();
|
| | | foreach (var config in configs)
|
| | | {
|
| | | if (config.BindMissionID == vNetData.MissionID)
|
| | | {
|
| | | StartBossShow(config.MapID, config.NpcID);
|
| | | return;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public void OnNpcAppear(int npcID)
|
| | | {
|
| | | if (BossShowing)
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | if (actorShowModel.BindMissionID == 0 || actorShowModel.type == 2)
|
| | | {
|
| | | return;
|
| | | }
|
| | | //if (actorShowModel.BindMissionID == 0 || actorShowModel.type == 2)
|
| | | //{
|
| | | // return;
|
| | | //}
|
| | | serverNotify = false;
|
| | | StartBossShow(npcID);
|
| | | }
|