Beispiel #1
0
 /*
  * Executed by bulletScript if within the range defined by the variable "bulletrange" in bulletScript's update function
  *
  * @return True if we are deflecting and there is a bullet within range.
  */
 public void BulletWithinRange()
 {
     if (deflecting)
     {
         deflects++;
         sCounter.AddDeflectScore();
         if (deflects >= 5)
         {
             deflects = 1;
         }
     }
 }