public override void OnStopServer() { //UnSub to Health Die Event health.ServerOnDie -= ServerHandleDie; //Trigger onDespawn event. When this object is despawned from server. We pass the gameobject attacked to the RTSPLAYER script to remove from correct client id. ServerOnUnitDespawn?.Invoke(this); }
public override void OnStopServer() { health.ServerOnDie -= ServerHandleDie; ServerOnUnitDespawn?.Invoke(this); }