示例#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);
         }
     }
 }
示例#2
0
 public void CopyActionData(FsmState state)
 {
     actionData = state.actionData.Copy();
 }