Files
taptap2024_GJ_chidouren/Assets/Scripts/Game/FsmNode/GameFight.cs

40 lines
1.3 KiB
C#
Raw Normal View History

2024-10-16 00:03:41 +08:00
using System;
using System.Guide;
using Framework.Audio;
using Framework.FSMLite;
using Framework.UI;
2024-10-21 17:02:25 +08:00
using Game.Component;
2024-10-16 00:03:41 +08:00
using Game.Data;
using UnityEngine;
using Views;
namespace Game.FsmNode
{
public class GameFight : StateMachine<GameState>
{
// 基础战斗引导
// ReSharper disable once MemberCanBePrivate.Global
public const string FightGuideTable = "FightGuide";
// ReSharper disable once MemberCanBePrivate.Global
public const string GodEyeGuideTable = "GodEyeGuide";
public static string GroupName = typeof(GameFight).FullName;
protected override async void OnEnter (params object[] args)
{
2024-10-21 22:29:53 +08:00
UIManager.Instance.OpenView (UIPanel.GamePanel);
CameraEffectUtils.Instance.SetAberration (0f , 0.5f);
CameraEffectUtils.Instance.SetGameCamBlur (0f , 0.5f , null);
2024-10-21 17:02:25 +08:00
MapContent.Instance.IsActiveGame = true;
// MapContent.Instance.Pathfinder.
2024-10-16 00:03:41 +08:00
AudioManager.Instance.PlayBGM (BgmAudio.FightingBgm);
}
protected override void OnExit ()
{
2024-10-21 22:29:53 +08:00
UIManager.Instance.CloseView (UIPanel.GamePanel);
2024-10-23 14:56:16 +08:00
// MapContent.Instance.IsActiveGame = false;
2024-10-21 17:02:25 +08:00
// MapContent.Instance.Pathfinder.PausePathfinding ();
2024-10-16 00:03:41 +08:00
}
}
}