Example #1
0
 public TrackBullet(UnitBase shooter, UnitBase target)
 {
     ID       = id;
     Shooter  = shooter;
     Target   = target;
     Movement = new TrackMovement(this);
     Movement.Retarget(target);
 }
Example #2
0
 public UnitController(UnitBase unit)
 {
     this.Unit       = unit;
     this.TargetUnit = null;
     mTrackMovement  = new TrackMovement(unit);
     mNormalMovement = new NormalMovement(unit);
     EnterIdle();
 }