/// <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); } }
private void destroyAsteroidRPC(int id) { asteroidsManager.remove(id); }