Example #1
0
 public RTCommand(Transform target, Callback callback = null)
 {
     this.Target   = target;
     this.Command  = ECommand.TYPE_RUNTO;
     this.Pursue   = EPursueType.Transform;
     this.Callback = callback;
 }
Example #2
0
 public RTCommand(Actor actor, Callback callback = null)
 {
     this.TargetActor = actor;
     this.Command     = ECommand.TYPE_RUNTO;
     this.Pursue      = EPursueType.Actor;
     this.Callback    = callback;
 }
Example #3
0
 public RTCommand(Vector3 destPosition, Callback callback = null)
 {
     this.TargetPos = destPosition;
     this.Command   = ECommand.TYPE_RUNTO;
     this.Pursue    = EPursueType.Position;
     this.Callback  = callback;
 }