You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
524 B
21 lines
524 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
using UnityEngine.XR.Interaction.Toolkit; |
|
|
|
namespace UDE_HAND_INTERACTION |
|
{ |
|
public class SimInputController : ActionBasedController |
|
{ |
|
[HideInInspector] |
|
public bool TriggerActive; |
|
|
|
protected override void UpdateInput(XRControllerState controllerState) |
|
{ |
|
base.UpdateInput(controllerState); |
|
|
|
controllerState.uiPressInteractionState.SetFrameState(TriggerActive, 0); |
|
} |
|
|
|
} |
|
}
|
|
|