Ejemplo n.º 1
0
 public override void Run()
 {
     base.Run();
     this.tarPos = Math_F.RandomInsideCircle(this.orgPos, this.radius);
     this.ownerEntity.LookAt(this.tarPos);
     //LogWarp.LogFormat("Run tarPos {0}", tarPos);
 }
Ejemplo n.º 2
0
 public void Init(EntityMovable ownerEntity, Vector3 orgPos, float radius, float speed)
 {
     this.ownerEntity = ownerEntity;
     this.orgPos      = orgPos;
     this.radius      = radius;
     this.speed       = speed;
     this.tarPos      = Math_F.RandomInsideCircle(this.orgPos, this.radius);
 }