private void OnPingCounterVisibilitySet(bool visible) { InputAdapter.PingCounterEnabled = visible; SetPersistentElementEnabled(visible, UIElements.PingDisplay); if (UiState == UiInputState.InGame) { PingTester PingTester = ComponentRegistry .RetrieveManager <PingTester>(UIElements.PingDisplay); PingTester.ShouldTest = visible; } }
public void EnteringMultiplayerGame(string hostIP) { Debug.Log("Entering Multiplayer Game"); // TODO: change to start in ship selection UiState = UiInputState.InGame; //TransitionToUIElements( // UiElementTransitionType.Fresh, // UIElements.GameplayUI //); //CameraTransition(CameraRoles.FixedUi); if ((ActiveUIElements & UIElements.PingDisplay) > 0) { Debug.Log("Activating Ping Tester"); PingTester PingTester = ComponentRegistry .RetrieveManager <PingTester>(UIElements.PingDisplay); PingTester.TestingIPAddress = hostIP; PingTester.ShouldTest = true; } }