示例#1
0
 public override void DeepClone(List<System.Action<System.Func<IntelligenceState, IntelligenceState>>> stateCloneCallbacks)
 {
     if (action)
     {
         action = Instantiate(action);
         action.DeepClone(stateCloneCallbacks);
     }
 }
示例#2
0
 public override void DeepClone(List<Action<Func<IntelligenceState, IntelligenceState>>> stateCloneCallbacks)
 {
     if (ifAction)
     {
         ifAction = Instantiate(ifAction);
         ifAction.DeepClone(stateCloneCallbacks);
     }
     if (thenAction)
     {
         thenAction = Instantiate(thenAction);
         thenAction.DeepClone(stateCloneCallbacks);
     }
 }