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); }
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); }