Exemplo n.º 1
0
 void SetupFsmStates(HutongGames.PlayMaker.FsmState state)
 {
     for (var j = 0; j < state.Actions.Length; j++)
     {
         var action = state.Actions[j];
         if (action is IAbility)
         {
             var ab = (IAbility)action;
             _abilities.Add(ab);
             ab.Init(this);
         }
     }
 }
Exemplo n.º 2
0
 public void CopyActionData(FsmState state)
 {
     actionData = state.actionData.Copy();
 }