I have an aciton which has an FsmFloat member variable.
I used to assign this variable in it's declaration like this:
Public FsmFloat volum = 1f;
It works until I upgrade my game to Unity4.
I got lots of error in debug console like this:
Error loading action: Playbgmusic : FSM : trigger : PlayBackGroundMusic : volume
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:LogError(Object)
HutongGames.PlayMaker.ActionData:CreateAction(FsmState, Int32)
HutongGames.PlayMaker.ActionData:LoadActions(FsmState)
HutongGames.PlayMaker.FsmState:LoadActions()
HutongGames.PlayMaker.Fsm:InitData()
HutongGames.PlayMaker.Fsm:Init(MonoBehaviour)
PlayMakerFSM:Awake()
Then I move the assigment to Reset() Method like this:
public FsmFloat volume;
public override void Reset()
{
volume = 1f;
}
But I still get this error after I build my game( this error never happen when I execute in editor
mode).
This problem make my game crash a lot. Is anyone have idea that happen here.
Thanks!