예제 #1
0
 public Projectile Fire(GameObject Target)
 {
     if (AttackType == null) {
         // TODO add logging
         return null;
     }
     else if (CanFire == true) {
         TimeSinceLastShot = 0f;
         CanFire = false;
         return AttackType(Target, this);
     }
     else return null;
 }
예제 #2
0
 public void DebugLog(GameObject Obj, string message = "")
 {
     Type ObjectType = Obj.GetType();
 }
예제 #3
0
 public static Projectile DebugProjectile(GameObject Target, Tower SourceTower)
 {
     Projectile Proj = new Projectile(new Animation(TextureManager.MainManager["LaserYellow"], 1000), SourceTower.Center, new Vector2(100, 0), Target);
     return Proj;
 }
예제 #4
0
 public Projectile(Animation animation, Vector2 Position, Vector2 Velocity, GameObject Target)
     : base(animation, Position, Velocity)
 {
     this.Target = Target;
         RotMode = RotationMode.Velocity;
 }