コード例 #1
0
 public WaitNode(string name, ITickSupplier tickSupplier, IValueSupplier <TBlackboard, int> ticksToWaitSupplier) : base(name)
 {
     _tickSupplier        = tickSupplier;
     _ticksToWaitSupplier = ticksToWaitSupplier;
 }
 public static SimpleBehaviourTreeBuilder <TBlackboard> Wait <TBlackboard>(this SimpleBehaviourTreeBuilder <TBlackboard> self, string name, IValueSupplier <TBlackboard, int> framesToWaitSupplier)
 {
     return(self.Wait(name, framesToWaitSupplier, new TickSupplier(World.Instance.Contexts)));
 }
コード例 #3
0
 public TBuilderMethodResult Wait(string name, IValueSupplier <TBlackboard, int> framesToWaitSupplier, ITickSupplier tickSupplier)
 {
     AcceptNode(new WaitNode <TBlackboard>(name, tickSupplier, framesToWaitSupplier));
     return(GetBuilderMethodResult());
 }