You've already forked taptap2024_GJ_chidouren
updat core
This commit is contained in:
@@ -4,6 +4,7 @@ using Framework.Audio;
|
||||
using Framework.FSMLite;
|
||||
using Framework.UI;
|
||||
using Game.Component;
|
||||
using Game.EventDefine;
|
||||
using UnityEngine;
|
||||
using Views;
|
||||
|
||||
@@ -13,12 +14,13 @@ namespace Game.FsmNode
|
||||
{
|
||||
protected override async void OnEnter (params object[] args)
|
||||
{
|
||||
CameraManager.Instance.SetCloseUpTarget (MapContent.Instance.PlayerEntity.transform , 2f);
|
||||
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);
|
||||
await UniTask.Delay (2000);
|
||||
GameEventDefine.GlobalRunaway.SendMessage (10);
|
||||
await UniTask.Delay (3000);
|
||||
|
||||
this.stateMachineRunner.OpenState (GameState.StartGame);
|
||||
}
|
||||
|
||||
@@ -28,13 +28,12 @@ namespace Game.FsmNode
|
||||
MapContent.Instance.IsActiveGame = true;
|
||||
// MapContent.Instance.Pathfinder.
|
||||
AudioManager.Instance.PlayBGM (BgmAudio.FightingBgm);
|
||||
var globalData = RoomManager.Instance.RoomGlobalData;
|
||||
}
|
||||
|
||||
protected override void OnExit ()
|
||||
{
|
||||
UIManager.Instance.CloseView (UIPanel.GamePanel);
|
||||
MapContent.Instance.IsActiveGame = false;
|
||||
// MapContent.Instance.IsActiveGame = false;
|
||||
// MapContent.Instance.Pathfinder.PausePathfinding ();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.RandomPool;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using FJson.Core;
|
||||
using Framework.Audio;
|
||||
using Framework.FSMLite;
|
||||
@@ -18,10 +19,13 @@ namespace Game.FsmNode
|
||||
{
|
||||
protected override async void OnEnter (params object[] args)
|
||||
{
|
||||
// GameEventDefine.GlobalRunaway.SendMessage (10);
|
||||
MapContent.Instance.IsPause = true;
|
||||
AudioManager.Instance.PlaySoundEffect (SeAudio.OverGame_Success);
|
||||
if (RoomManager.Instance.PartIndex < 3)
|
||||
{
|
||||
|
||||
await UniTask.Delay (500);
|
||||
UIManager.Instance.OpenView (UIPanel.SuccessPanel , new IC_ViewData (RoomManager.Instance.PartIndex));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user