public void OnStartGameCountdown(NetworkMessage netMsg) { ServerNetworking.StartGameCountdownMessage msg = netMsg.ReadMessage <ServerNetworking.StartGameCountdownMessage> (); if (OnStartGameCountdownEvent != null) { OnStartGameCountdownEvent(msg.delay); } }
public void AllClientsStartGameCountdown(int delay) { ServerNetworking.StartGameCountdownMessage msg = new ServerNetworking.StartGameCountdownMessage(); msg.delay = delay; NetworkServer.SendToAll(NetworkConstants.MSG_START_GAME_COUNTDOWN, msg); }