37 lines
786 B
C#
37 lines
786 B
C#
using Cysharp.Threading.Tasks;
|
|
using Framework;
|
|
using Gameplay;
|
|
using Gameplay.LegionBattle;
|
|
using Gameplay.Level;
|
|
using Gameplay.SubSystems;
|
|
|
|
public class GameStateLegionBattleInspect : IState
|
|
{
|
|
public GameStateLegionBattleInspect()
|
|
{
|
|
}
|
|
|
|
public void OnEnter()
|
|
{
|
|
LoadLegionBattleInspect();
|
|
}
|
|
|
|
public void OnUpdate(float deltaTime)
|
|
{
|
|
|
|
}
|
|
|
|
public void OnExit()
|
|
{
|
|
LegionBattleManager.Instance.UnloadLegionBattle();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 加载军团战地图
|
|
/// </summary>
|
|
private async void LoadLegionBattleInspect()
|
|
{
|
|
await LoadingManager.Instance.ExecuteLoading(new LegionBattleInspectLoadingExecutor());
|
|
LegionBattleManager.Instance.CurBattle.EnterLegionBattleInspect();
|
|
}
|
|
} |