예제 #1
0
 public void Reset(OculusSampleFramework.InteractableStateArgs obj)
 {
     if (obj.NewInteractableState == OculusSampleFramework.InteractableState.ActionState)
     {
         LightItem.ResetIntensity();
     }
 }
예제 #2
0
 private void Start()
 {
     if (modetext)
     {
         modetext.text  = LightItem.GetMode();
         modetext2.text = LightItem.GetMode();
     }
 }
예제 #3
0
 public void ToggleMode(OculusSampleFramework.InteractableStateArgs obj)
 {
     if (obj.NewInteractableState == OculusSampleFramework.InteractableState.ActionState)
     {
         LightItem.ToggleMode();
         modetext.text  = LightItem.GetMode();
         modetext2.text = LightItem.GetMode();
     }
 }