private void Awake()
    {
        if (primaryButtonPress == null)
        {
            primaryButtonPress = new PrimaryButtonEvent();
        }

        devicesWithPrimaryButton = new List <InputDevice>();
    }
예제 #2
0
    void Awake()
    {
        if (primaryButtonPress == null)
        {
            primaryButtonPress = new PrimaryButtonEvent();
        }

        allDevices = new List <UnityEngine.XR.InputDevice>();
        devicesWithPrimaryButton = new List <UnityEngine.XR.InputDevice>();
        InputTracking.nodeAdded += InputTracking_nodeAdded;
    }
예제 #3
0
 void Start()
 {
     if (primaryButtonEvent == null)
     {
         primaryButtonEvent = new PrimaryButtonEvent();
     }
     if (triggerButtonEvent == null)
     {
         triggerButtonEvent = new TriggerButtonEvent();
     }
     InputTracking.nodeAdded += InputTracking_nodeAdded;
 }