Files
2024-11-20 15:21:28 +01:00

27 lines
561 B
C#

// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.GameObject)]
[Tooltip("Gets the Game Object that owns the FSM and stores it in a game object variable.")]
public class GetOwner : FsmStateAction
{
[RequiredField]
[UIHint(UIHint.Variable)]
public FsmGameObject storeGameObject;
public override void Reset()
{
storeGameObject = null;
}
public override void OnEnter()
{
storeGameObject.Value = Owner;
Finish();
}
}
}