You've already forked taptap2024_GJ_chidouren
34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using System;
|
|
using Cysharp.Threading.Tasks;
|
|
using Framework.Audio;
|
|
using Framework.FSMLite;
|
|
using Framework.UI;
|
|
using Game.Component;
|
|
using Game.EventDefine;
|
|
using UnityEngine;
|
|
using Views;
|
|
|
|
namespace Game.FsmNode
|
|
{
|
|
public class GameField : StateMachine<GameState>
|
|
{
|
|
protected override async void OnEnter (params object[] args)
|
|
{
|
|
CameraManager.Instance.SetCloseUpTarget (MapContent.Instance.PlayerEntity.transform , 3f);
|
|
CameraImpulseUtils.Instance.ExplosionImpulseCamera (1 , 0.5f , 0.5f , 0.5f);
|
|
CameraEffectUtils.Instance.SetAberration (1f , 0.5f);
|
|
CameraEffectUtils.Instance.SetGameCamBlur (0.35f , 0.5f , null);
|
|
AudioManager.Instance.PlaySoundEffect (SeAudio.OverGame_Fail);
|
|
GameEventDefine.GlobalRunaway.SendMessage (10);
|
|
await UniTask.Delay (3000);
|
|
|
|
this.stateMachineRunner.OpenState (GameState.StartGame);
|
|
}
|
|
|
|
protected override void OnExit ()
|
|
{
|
|
UIManager.Instance.CloseViewWithGroup (this.GetType ().FullName);
|
|
UIManager.Instance.CloseViewWithGroup (GameFight.GroupName);
|
|
}
|
|
}
|
|
} |