Hello,
Yes, I know the type of variable I need to use. the problem is in my code I need to change it regarding what we have. The script is accessing the component script so it's a little tricky. I'm posting the code:
This is the component script:
using UnityEngine;
public class MyBehavior : MonoBehaviour
{
public float testFloat;
}
There is my custom action:
using HutongGames.PlayMaker;
namespace MyNameSpace.Actions
{
[ActionCategory(ActionCategory.ScriptControl)]
[Tooltip("Shows how to interface with a behavior on a game object")]
public class MyBehaviorAction : FsmStateAction
{
public MyBehavior myBehavior;
[UIHint(UIHint.Variable)]
public FsmFloat getTestFloat;
public override void OnUpdate()
{
getTestFloat.Value = myBehavior.testFloat;
}
}
}
I need to have the possibility to set myBehavior variable as a FsmOwnerDefault gameObject. But I don't know how to do that because this value access to the component script.
How I can do that?