mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-22 22:07:59 +01:00
31 lines
548 B
C#
31 lines
548 B
C#
using Fie.UI;
|
|
using HutongGames.PlayMaker;
|
|
|
|
namespace Fie.PlayMaker
|
|
{
|
|
[ActionCategory("Friendship is Epic")]
|
|
public class FieLobbyElementSelectUIButtonForPlaymaker : FsmStateAction
|
|
{
|
|
[RequiredField]
|
|
public FieLobbyCharacterSelectUIController controller;
|
|
|
|
[RequiredField]
|
|
public FsmEvent SucseedEvent;
|
|
|
|
[RequiredField]
|
|
public FsmEvent FeildEvent;
|
|
|
|
public override void OnEnter()
|
|
{
|
|
if (controller.isDecidable())
|
|
{
|
|
base.Fsm.Event(SucseedEvent);
|
|
}
|
|
else
|
|
{
|
|
base.Fsm.Event(FeildEvent);
|
|
}
|
|
Finish();
|
|
}
|
|
}
|
|
}
|