Пример #1
0
 public void Reset(OculusSampleFramework.InteractableStateArgs obj)
 {
     if (obj.NewInteractableState == OculusSampleFramework.InteractableState.ActionState)
     {
         LightItem.ResetIntensity();
     }
 }
Пример #2
0
 public void Decrease(OculusSampleFramework.InteractableStateArgs obj)
 {
     if (obj.NewInteractableState == OculusSampleFramework.InteractableState.ActionState)
     {
         _lightitem.DecreaseIntensity(increase);
     }
 }
Пример #3
0
 public void Toggle(OculusSampleFramework.InteractableStateArgs obj)
 {
     if (obj.NewInteractableState == OculusSampleFramework.InteractableState.ActionState)
     {
         _lightitem.Toggle();
     }
 }
Пример #4
0
 public void ToggleMode(OculusSampleFramework.InteractableStateArgs obj)
 {
     if (obj.NewInteractableState == OculusSampleFramework.InteractableState.ActionState)
     {
         LightItem.ToggleMode();
         modetext.text  = LightItem.GetMode();
         modetext2.text = LightItem.GetMode();
     }
 }