Example #1
0
 public void Reset()
 {
     pos   = new Vector2(screenWidth / 2, screenHeight / 2); //starting position
     speed = 0;
     particleEngine.Reset();
     bulletUpgraded = false;
     foreach (Bullet b in bullets)
     {
         b.Reset();
     }
 }
Example #2
0
 public void Reset()
 { //reset alie to false and get new values again for other variables
     GetPosition(rnd);
     GetVelocity();
     GetRotation();
     speed = 4;
     alive = false;
     particleEngine.Reset();
     foreach (Bullet b in bullets)
     {
         b.Reset();
     }
     ResetHealth();
 }