public void OnCancelGameCountdown(NetworkMessage netMsg) { ServerNetworking.CancelGameCountdownMessage msg = netMsg.ReadMessage <ServerNetworking.CancelGameCountdownMessage> (); if (OnCancelGameCountdownEvent != null) { OnCancelGameCountdownEvent(msg.reason); } }
public void AllClientsCancelGameCountdown(string reason) { ServerNetworking.CancelGameCountdownMessage msg = new ServerNetworking.CancelGameCountdownMessage(); msg.reason = reason; NetworkServer.SendToAll(NetworkConstants.MSG_CANCEL_GAME_COUNTDOWN, msg); }