//Subscribe to messages that will be sent from the server private void OnEnable() { ExampleRoomController.onAddNetworkEntity += OnNetworkAdd; ExampleRoomController.onRemoveNetworkEntity += OnNetworkRemove; ExampleRoomController.onScoreUpdate += OnScoreUpdate; ExampleRoomController.onGotTargetLineUp += GotNewTargetLineUp; ExampleRoomController.onRoomStateChanged += OnRoomStateChanged; ExampleRoomController.onBeginRoundCountDown += OnBeginRoundCountDown; ExampleRoomController.onBeginRound += OnBeginRound; ExampleRoomController.onRoundEnd += OnRoundEnd; ExampleRoomController.OnCurrentUserStateChanged += OnUserStateChanged; ArrangeLighting(false); scoreboardController.ResetScoreboards(); scoreboardController.SetMessage(GetPlayerReadyState()); uiController.AllowExit(true); }