清理项目目录,引入 InputModule 做多平台输入适配
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using SepCore.Event;
|
||||
using SepCore.DataTable;
|
||||
using SepCore.Entity;
|
||||
using SepCore.Definition;
|
||||
using GameFramework.Fsm;
|
||||
using GameFramework.Procedure;
|
||||
using SepCore.EnemyManager;
|
||||
@@ -53,6 +55,11 @@ namespace SepCore.Procedure
|
||||
_enemyManager.OnInit(drLevel, Player);
|
||||
|
||||
if (Player != null) Player.Enable = true;
|
||||
|
||||
if (Application.isMobilePlatform)
|
||||
{
|
||||
GameEntry.UIRouter.OpenUIAsync(UIFormType.JoystickForm).Forget();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnUpdate(float elapseSeconds, float realElapseSeconds)
|
||||
@@ -78,6 +85,8 @@ namespace SepCore.Procedure
|
||||
|
||||
public override void OnLeave()
|
||||
{
|
||||
GameEntry.UIRouter.CloseUIAsync(UIFormType.JoystickForm).Forget();
|
||||
|
||||
// 隐藏所有敌人实体
|
||||
_enemyManager.OnReset();
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ namespace SepCore.Procedure
|
||||
base.OnEnter(procedureOwner);
|
||||
|
||||
GameEntry.SimulationWorld?.ClearSimulationState();
|
||||
GameEntry.InputModule?.SetGameplayExploreContext();
|
||||
|
||||
CurrentLevel = 1;
|
||||
_currentPlayerData = new PlayerData(-1, 1001);
|
||||
|
||||
Reference in New Issue
Block a user