private void OnEnable() { logBox.ClearLogs(); txtConnecting.text = "Connecting..."; txtConnecting.color = new Color(209f / 255f, 209f / 255f, 209f / 255f, 1); CanvasScript.BackEvent += OnBackPress; FragTest.ConnectionStatusEvent += OnConnectionStatus; FragTest.NativeExceptionEvent += OnNativeException; ConnectTo(); }
private void OnEnable() { if (PlayerPrefs.GetInt(SettingsScreen.prefPressMode) == -1 || PlayerPrefs.GetInt(SettingsScreen.prefPressMode) == 0) { continousMode = true; } else { continousMode = false; } SetOutlineColour(); logBox.ClearLogs(); CanvasScript.BackEvent += OnBackPress; FragTest.ConnectionStatusEvent += OnConnectionStatusChange; FragTest.NativeExceptionEvent += OnNativeException; }