2024-10-16 00:03:41 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.RandomPool;
|
2024-10-23 14:56:16 +08:00
|
|
|
|
using Cysharp.Threading.Tasks;
|
2024-10-16 00:03:41 +08:00
|
|
|
|
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)
|
|
|
|
|
|
{
|
2024-10-23 14:56:16 +08:00
|
|
|
|
// GameEventDefine.GlobalRunaway.SendMessage (10);
|
|
|
|
|
|
MapContent.Instance.IsPause = true;
|
2024-10-16 00:03:41 +08:00
|
|
|
|
AudioManager.Instance.PlaySoundEffect (SeAudio.OverGame_Success);
|
2024-10-26 22:42:24 +08:00
|
|
|
|
if (RoomManager.Instance.PartIndex <= 3)
|
2024-10-22 19:10:15 +08:00
|
|
|
|
{
|
2024-10-23 18:46:37 +08:00
|
|
|
|
await UniTask.Delay (1500);
|
2024-10-23 14:56:16 +08:00
|
|
|
|
UIManager.Instance.OpenView (UIPanel.SuccessPanel , new IC_ViewData (RoomManager.Instance.PartIndex));
|
2024-10-22 19:10:15 +08:00
|
|
|
|
}
|
2024-10-16 00:03:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override void OnExit ()
|
|
|
|
|
|
{
|
|
|
|
|
|
UIManager.Instance.CloseViewWithGroup (this.GetType ().FullName);
|
|
|
|
|
|
UIManager.Instance.CloseViewWithGroup (GameFight.GroupName);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|