Beispiel #1
0
        protected override Status DoTick(BTContext ctx)
        {
            if (lastStatus == Status.Success)
            {
                return(Status.Success);
            }
            var s = child.Tick(ctx);

            if (s == Status.Success)
            {
                child.Terminate(ctx);
            }
            return(s);
        }
Beispiel #2
0
 protected override Status DoTick(BTContext ctx)
 {
     return(child.Tick(ctx));
 }
 // Update is called once per frame
 void Update()
 {
     behave.Tick(ctx);
 }