Esempio n. 1
0
 private void Firing()
 {
     if (modeTime > fireWait)
     {
         if (shotCount > maxShots)
         {
             shotCount = 0;
             StartMove();
         }
         else
         {
             //shoot and turn clockwise
             shotCount++;
             FireProjectile();
             facing   = Facing.RotateClockwise(facing);
             modeTime = 0f;
         }
     }
 }