Ejemplo n.º 1
0
 /// <summary>
 /// Called by a RPC to signify that this asteroid has been hit
 /// Everyone receives this one so the maj it does is done for everyone
 /// </summary>
 public void hit()
 {
     hp--;
     if (hp <= 0)
     {
         asteroidManager.remove(this.id);
     }
 }
Ejemplo n.º 2
0
 private void destroyAsteroidRPC(int id)
 {
     asteroidsManager.remove(id);
 }