protected virtual void Update() { if (CurrentHandState == HandState.Uninitialized) { if (InputDevice == null || InputDevice.ReadyToInitialize() == false) { return; } else { Initialize(); return; } } UpdateButtonStates(); if (!Freeze) { UpdateInteractions(); } else if (CurrentlyInteracting != null) { EndInteraction(CurrentlyInteracting); } UpdateHovering(); UpdateVisibilityAndColliders(); }
protected virtual void Update() { if (CurrentHandState == HandState.Uninitialized) { if (InputDevice == null || InputDevice.ReadyToInitialize() == false) { return; } else { Initialize(); //UpdateOculusController(); return; } } UpdateButtonStates(); UpdateInteractions(); UpdateHovering(); UpdateVisibilityAndColliders(); }