private void StartApp() { if (isCurrentlyInFocus && theComponent != null && !isCurrentlySelected) { isCurrentlySelected = true; material.color = Color.green; theComponent.DisableApp(); theComponent.EnableApp(); theComponent.OnAppStarted += App_OnAppStarted; } }
private void StopApp() { MREComponent?.DisableApp(); _running = false; }