protected void HandleUnityEvents(RemoteBoundsState boundsState) { switch (boundsState) { case RemoteBoundsState.Ready: OnBoundsReady?.Invoke(); break; default: OnBoundsNotReady?.Invoke(); break; } }
private void BoundsStateChange(RemoteBoundsState state) { switch (state) { case RemoteBoundsState.NotReady: case RemoteBoundsState.Error: case RemoteBoundsState.Updating: menuButton.IsToggled = true; // Lock menuButton.IsEnabled = false; UpdateLockState(); break; case RemoteBoundsState.Ready: menuButton.IsToggled = false; // Unlock menuButton.IsEnabled = true; UpdateLockState(); break; } }