|
@@ -8,6 +8,7 @@ using Fort23.Core;
|
|
using Fort23.Mono;
|
|
using Fort23.Mono;
|
|
using Fort23.UTool;
|
|
using Fort23.UTool;
|
|
using GameLogic.Bag;
|
|
using GameLogic.Bag;
|
|
|
|
+using GameLogic.Combat.CombatTool;
|
|
using GameLogic.CombatScenesTool;
|
|
using GameLogic.CombatScenesTool;
|
|
using GameLogic.Hero;
|
|
using GameLogic.Hero;
|
|
using GameLogic.Player;
|
|
using GameLogic.Player;
|
|
@@ -46,6 +47,7 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
set { playerName = value; }
|
|
set { playerName = value; }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private CTask _cTask;
|
|
|
|
|
|
public long serverTime => TimeHelper.ServerNow();
|
|
public long serverTime => TimeHelper.ServerNow();
|
|
private AccountFileInfo.SmallPlacesData currentPlaces;
|
|
private AccountFileInfo.SmallPlacesData currentPlaces;
|
|
@@ -313,6 +315,13 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
|
|
|
|
StaticUpdater.Instance.RemoveRenderUpdateCallBack(Update);
|
|
StaticUpdater.Instance.RemoveRenderUpdateCallBack(Update);
|
|
StaticUpdater.Instance.AddRenderUpdateCallBack(Update);
|
|
StaticUpdater.Instance.AddRenderUpdateCallBack(Update);
|
|
|
|
+
|
|
|
|
+ EventManager.Instance.AddEventListener(CustomEventType.CloseLoadingUI,CloseLoadingUI);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private void CloseLoadingUI(IEventData e)
|
|
|
|
+ {
|
|
|
|
+ _cTask?.SetResult();
|
|
}
|
|
}
|
|
|
|
|
|
private float timer;
|
|
private float timer;
|
|
@@ -346,11 +355,9 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
}
|
|
}
|
|
|
|
|
|
return (float)Math.Round(((float)placesData.progress / placesConfig.TotalScore) * 100, 1);
|
|
return (float)Math.Round(((float)placesData.progress / placesConfig.TotalScore) * 100, 1);
|
|
- // AccountFileInfo.Instance.playerData.completeEvents.Where(ce =>placesConfig.MainTaskID.Contains(ce.eventID) || placesConfig.ZhixianID.Contains(ce.eventID) || placesConfig.ZhixianID.Contains(ce.1001
|
|
|
|
- // ))
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- // List<long> removeKey = new List<long>();
|
|
|
|
|
|
+
|
|
|
|
|
|
private bool isUpdate = false;
|
|
private bool isUpdate = false;
|
|
|
|
|
|
@@ -453,7 +460,7 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public async void ChangeMap(int mapId)
|
|
|
|
|
|
+ public async CTask ChangeMap(int mapId)
|
|
{
|
|
{
|
|
SmallPlacesConfig smallPlacesConfig = ConfigComponent.Instance.Get<SmallPlacesConfig>(mapId);
|
|
SmallPlacesConfig smallPlacesConfig = ConfigComponent.Instance.Get<SmallPlacesConfig>(mapId);
|
|
if (smallPlacesConfig.ID == 0)
|
|
if (smallPlacesConfig.ID == 0)
|
|
@@ -479,7 +486,9 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ UIManager.Instance.HindCurrAllShowPanel();
|
|
|
|
+ _cTask = CTask.Create();
|
|
|
|
+
|
|
AccountFileInfo.SmallPlacesData smallPlacesData =
|
|
AccountFileInfo.SmallPlacesData smallPlacesData =
|
|
PlayerManager.Instance.GetSmallPlacesData(smallPlacesConfig.ID);
|
|
PlayerManager.Instance.GetSmallPlacesData(smallPlacesConfig.ID);
|
|
|
|
|
|
@@ -501,8 +510,11 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
|
|
|
|
PlayerManager.Instance.CurrentsmallPlaces = smallPlacesData;
|
|
PlayerManager.Instance.CurrentsmallPlaces = smallPlacesData;
|
|
|
|
|
|
-
|
|
|
|
|
|
+ CombatController.currActiveCombat.ChangeState(CombatController.sceneSwitch);
|
|
|
|
+ await _cTask;
|
|
|
|
+ UIManager.Instance.ShowLastHindAllShowPanel();
|
|
EventManager.Instance.Dispatch(CustomEventType.ChangeMap, null);
|
|
EventManager.Instance.Dispatch(CustomEventType.ChangeMap, null);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
public void QianKunDaiAward()
|
|
public void QianKunDaiAward()
|