public void Reset(OculusSampleFramework.InteractableStateArgs obj) { if (obj.NewInteractableState == OculusSampleFramework.InteractableState.ActionState) { LightItem.ResetIntensity(); } }
private void Start() { if (modetext) { modetext.text = LightItem.GetMode(); modetext2.text = LightItem.GetMode(); } }
public void ToggleMode(OculusSampleFramework.InteractableStateArgs obj) { if (obj.NewInteractableState == OculusSampleFramework.InteractableState.ActionState) { LightItem.ToggleMode(); modetext.text = LightItem.GetMode(); modetext2.text = LightItem.GetMode(); } }