/// <summary> /// Send full update to a client /// </summary> public static PlayerEatDrinkEffectsServerMessage Send(GameObject clientConn, int newAlcoholValue) { PlayerEatDrinkEffectsServerMessage msg = new PlayerEatDrinkEffectsServerMessage { alcoholValue = newAlcoholValue }; msg.SendTo(clientConn); return(msg); }
public void ServerSendMessageToClient(GameObject client, int newValue) { PlayerEatDrinkEffectsServerMessage.Send(client, newValue); }