Hi,
I'm using a FsmObject variable. Its value always return null! Help! I'm not a programmer, hope someone good at it could help me out!
In my action script, before doing the real thing I wrote this to initialize the FsmObject.
if (ABC.value == null)
{
Debug.log("ABC.value is null!")
ABC.value = new MyObject();
}
MyObject is a simple class:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
public class MyObject: Object {
public bool b;
public MyObject()
{
this.b = true;
}
}
}
Every time my Action is entered or using everyFrame. I got this "ABC.value is null!" log and the ABC.value are reset. I can't store the result into the ABC FsmObject variable.