private void DespawnedUnitServerHandler(Unit unit) { if (unit.connectionToClient.connectionId != connectionToClient.connectionId) { return; } PlayerUnits.Remove(unit); }
private void DespawnedUnitClientHandler(Unit unit) { PlayerUnits.Remove(unit); }