| | |
| | | public bool satisfyStep { get; private set; }
|
| | | private bool serverNotify = false;
|
| | | private int cacheMapId = 0;
|
| | | private Int3 taskInfo = Int3.zero;
|
| | | private const string BOSS_SHOW_KEY = "BossShow";
|
| | | public event Action bossShowPreparedEvent;
|
| | | public event Action bossShowCompletedEvent;
|
| | |
| | |
|
| | | public void ReceivePackage(H0827_tagMissionDesc vNetData)
|
| | | {
|
| | | if (DTC0403_tagPlayerLoginLoadOK.finishedLogin)
|
| | | var _taskInfo = new Int3((int)vNetData.MissionID, vNetData.MissionState, vNetData.DiscriptionIndex);
|
| | | if (_taskInfo != taskInfo)
|
| | | {
|
| | | var configs = ActorShowConfig.GetValues();
|
| | | foreach (var config in configs)
|
| | | taskInfo = _taskInfo;
|
| | | if (DTC0403_tagPlayerLoginLoadOK.finishedLogin)
|
| | | {
|
| | | if (config.BindMissionID.x == vNetData.MissionID
|
| | | && config.BindMissionID.y == vNetData.MissionState
|
| | | && config.BindMissionID.z == vNetData.DiscriptionIndex)
|
| | | var configs = ActorShowConfig.GetValues();
|
| | | foreach (var config in configs)
|
| | | {
|
| | | Start(config.MapID, config.NpcID);
|
| | | if (PlayerDatas.Instance.hero != null)
|
| | | if (config.BindMissionID == taskInfo)
|
| | | {
|
| | | PlayerDatas.Instance.hero.StopAll();
|
| | | Start(config.MapID, config.NpcID);
|
| | | if (PlayerDatas.Instance.hero != null)
|
| | | {
|
| | | PlayerDatas.Instance.hero.StopAll();
|
| | | }
|
| | | return;
|
| | | }
|
| | | return;
|
| | | }
|
| | | }
|
| | | }
|