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; }
public void DebugLog(GameObject Obj, string message = "") { Type ObjectType = Obj.GetType(); }
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; }
public Projectile(Animation animation, Vector2 Position, Vector2 Velocity, GameObject Target) : base(animation, Position, Velocity) { this.Target = Target; RotMode = RotationMode.Velocity; }