Пример #1
0
 public virtual void Shoot()
 {
     if (shootTimer >= ShootInterval)
     {
         if (CombatManager != null)
         {
             CombatManager.AddProjectile(Position, 0.2f, 10, 6f, Rotation, this);
         }
         shootTimer = 0f;
     }
 }
Пример #2
0
 public override void Shoot()
 {
     if (shootTimer >= ShootInterval)
     {
         if (CombatManager != null)
         {
             CombatManager.AddProjectile(Position, 0.8f, 20, 40f, Rotation, this);
         }
         shootTimer = 0f;
     }
 }
Пример #3
0
 public override void Shoot()
 {
     if (shootTimer >= ShootInterval)
     {
         if (CombatManager != null)
         {
             CombatManager.AddProjectile(Position + new Vector2((float)(20 * Math.Cos(Rotation)), (float)(20 * Math.Sin(Rotation))), 0.2f, 4, 20f, Rotation, this);
             CombatManager.AddProjectile(Position - new Vector2((float)(20 * Math.Cos(Rotation)), (float)(20 * Math.Sin(Rotation))), 0.2f, 4, 20f, Rotation, this);
         }
         shootTimer = 0f;
     }
 }