mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-22 22:07:59 +01:00
38 lines
902 B
C#
38 lines
902 B
C#
using Fie.UI;
|
|
using HutongGames.PlayMaker;
|
|
using UnityEngine;
|
|
|
|
namespace Fie.PlayMaker
|
|
{
|
|
[ActionCategory("Friendship is Epic")]
|
|
public class FieLobbyNameEntryUIControllerForPlayMaker : FsmStateAction
|
|
{
|
|
[RequiredField]
|
|
[CheckForComponent(typeof(FieLobbyNameEntryUIController))]
|
|
public FsmOwnerDefault controllerObject;
|
|
|
|
private FieLobbyNameEntryUIController _controllerComponent;
|
|
|
|
public override void Reset()
|
|
{
|
|
controllerObject = null;
|
|
}
|
|
|
|
public override void OnEnter()
|
|
{
|
|
if (!base.Finished && controllerObject != null)
|
|
{
|
|
GameObject ownerDefaultTarget = base.Fsm.GetOwnerDefaultTarget(controllerObject);
|
|
if (!(ownerDefaultTarget == null))
|
|
{
|
|
_controllerComponent = ownerDefaultTarget.GetComponent<FieLobbyNameEntryUIController>();
|
|
if (_controllerComponent != null)
|
|
{
|
|
_controllerComponent.Decide();
|
|
}
|
|
Finish();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|