You've already forked taptap2024_GJ_chidouren
updat core
This commit is contained in:
@@ -26,10 +26,7 @@ namespace Game.Component
|
||||
|
||||
public void OnMove (Vector2 vector)
|
||||
{
|
||||
if (!MapContent.Instance.IsActiveGame)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var t = this.transform;
|
||||
// 获取前方方向的世界坐标
|
||||
|
||||
@@ -15,8 +15,11 @@ namespace Game.Component
|
||||
|
||||
[LabelText ("当前完成数:")] private int _currentConditionNumber = 0;
|
||||
|
||||
public int CurrentConditionNumber => this._currentConditionNumber;
|
||||
|
||||
private List<EnemyEntity> _enemyEntities;
|
||||
|
||||
public float CurProgress => this._currentConditionNumber * 1f / completeConditionNumber;
|
||||
|
||||
public bool IsComplete => _currentConditionNumber >= completeConditionNumber;
|
||||
|
||||
|
||||
@@ -15,9 +15,11 @@ namespace Game.FsmNode
|
||||
{
|
||||
CameraManager.Instance.SetCloseUpTarget (MapContent.Instance.PlayerEntity.transform , 2f);
|
||||
CameraImpulseUtils.Instance.ExplosionImpulseCamera (1 , 0.5f , 0.5f , 0.5f);
|
||||
CameraEffectUtils.Instance.SetAberration (1 , 0.5f);
|
||||
CameraEffectUtils.Instance.SetAberration (1f , 0.5f);
|
||||
CameraEffectUtils.Instance.SetGameCamBlur (0.35f , 0.5f , null);
|
||||
AudioManager.Instance.PlaySoundEffect (SeAudio.OverGame_Fail);
|
||||
await UniTask.Delay (2000);
|
||||
|
||||
this.stateMachineRunner.OpenState (GameState.StartGame);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ namespace Game.FsmNode
|
||||
public static string GroupName = typeof(GameFight).FullName;
|
||||
protected override async void OnEnter (params object[] args)
|
||||
{
|
||||
UIManager.Instance.OpenView (UIPanel.GamePanel);
|
||||
CameraEffectUtils.Instance.SetAberration (0f , 0.5f);
|
||||
CameraEffectUtils.Instance.SetGameCamBlur (0f , 0.5f , null);
|
||||
MapContent.Instance.IsActiveGame = true;
|
||||
// MapContent.Instance.Pathfinder.
|
||||
AudioManager.Instance.PlayBGM (BgmAudio.FightingBgm);
|
||||
@@ -30,6 +33,7 @@ namespace Game.FsmNode
|
||||
|
||||
protected override void OnExit ()
|
||||
{
|
||||
UIManager.Instance.CloseView (UIPanel.GamePanel);
|
||||
MapContent.Instance.IsActiveGame = false;
|
||||
// MapContent.Instance.Pathfinder.PausePathfinding ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user