コード例 #1
0
    void Start()
    {
        wandLeft  = controllerGameObjectLeft.GetComponent <SteamVR_TestThrow>();
        wandRayL  = controllerGameObjectLeft.GetComponent <WandRay>();
        wandRight = controllerGameObjectRight.GetComponent <SteamVR_TestThrow>();
        wandRayR  = controllerGameObjectLeft.GetComponent <WandRay>();

        myInteractionHandler = sceneGod.GetComponent <InteractionHandler>();
    }
コード例 #2
0
 void ControllerUpdate(SteamVR_TestThrow wand, string handedness)
 {
     myInteractionHandler.HandleInteraction(wand.triggerPress, wand.gameObject.transform.position, handedness);
 }