public static void AddBoostIntoGame(int boostId, Vector3 boostPos) { foreach (Client client in Server.clients.Values) { if (client.player != null) { ServerSend.HandleBoost(client.id, true, boostId, boostPos);//Tell client to add a boost } } }
public void RemoveBoostFromGame(int boostId, Vector3 boostPos) { foreach (Client client in Server.clients.Values) { if (client.player != null) { ServerSend.HandleBoost(client.id, false, boostId, boostPos);//Tell client to remove a boost } } }