2025-01-14 14:36:09 +08:00
|
|
|
using Cysharp.Threading.Tasks;
|
|
|
|
|
using Framework;
|
|
|
|
|
using Gameplay;
|
2025-01-16 12:24:58 +08:00
|
|
|
using Gameplay.LegionBattle;
|
2025-01-14 14:36:09 +08:00
|
|
|
using Gameplay.Level;
|
|
|
|
|
using Gameplay.SubSystems;
|
|
|
|
|
|
|
|
|
|
public class GameStateLegionBattle : IState
|
|
|
|
|
{
|
|
|
|
|
public GameStateLegionBattle()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnEnter()
|
|
|
|
|
{
|
|
|
|
|
LoadLegionBattle();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnUpdate(float deltaTime)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void OnExit()
|
|
|
|
|
{
|
2025-01-16 12:24:58 +08:00
|
|
|
LegionBattleManager.Instance.UnloadLegionBattle();
|
2025-01-14 14:36:09 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 加载军团战
|
|
|
|
|
/// </summary>
|
|
|
|
|
private async void LoadLegionBattle()
|
|
|
|
|
{
|
|
|
|
|
await LoadingManager.Instance.ExecuteLoading(new LegionBattleLoadingExecutor());
|
2025-02-19 17:50:08 +08:00
|
|
|
LegionBattleManager.Instance.CurBattle.EnterLegionBattle();
|
2025-01-14 14:36:09 +08:00
|
|
|
}
|
|
|
|
|
}
|