You've already forked taptap2024_GJ_chidouren
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System;
|
|
using System.RandomPool;
|
|
using Cysharp.Threading.Tasks;
|
|
using FJson.Core;
|
|
using Framework.Audio;
|
|
using Framework.FSMLite;
|
|
using Framework.Timer;
|
|
using Framework.UI;
|
|
using Game.Component;
|
|
using Game.Data;
|
|
using Game.EventDefine;
|
|
using IcecreamView;
|
|
using Unity.Mathematics;
|
|
using Views;
|
|
|
|
namespace Game.FsmNode
|
|
{
|
|
public class GameSuccess : StateMachine<GameState>
|
|
{
|
|
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 (1500);
|
|
UIManager.Instance.OpenView (UIPanel.SuccessPanel , new IC_ViewData (RoomManager.Instance.PartIndex));
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnExit ()
|
|
{
|
|
UIManager.Instance.CloseViewWithGroup (this.GetType ().FullName);
|
|
UIManager.Instance.CloseViewWithGroup (GameFight.GroupName);
|
|
}
|
|
}
|
|
} |