Exemplo n.º 1
0
 void Awake()
 {
     controller = GetComponent <Oculus_TrackedController>();
     anim       = GetComponent <Oculus_HandAnim>();
     //if (controller.handedness == OvrTouch.Controllers.HandednessId.Left)
     //marker = FreeMarker.addFreeMarker(transform.Find("l_hand_skeletal").Find("hands:l_hand_world").Find("hands:b_l_hand").Find("hands:b_l_index1").Find("hands:b_l_index2").Find("hands:b_l_index3").Find("hands:b_l_index_ignore").gameObject);
     //marker = FreeMarker.addFreeMarker(transform.Find("Pentip").gameObject);
     //else
     //marker = FreeMarker.addFreeMarker(transform.Find("r_hand_skeletal").Find("hands:r_hand_world").Find("hands:b_r_hand").Find("hands:b_r_index1").Find("hands:b_r_index2").Find("hands:b_r_index3").Find("hands:b_r_index_ignore").gameObject);
     //marker = FreeMarker.addFreeMarker(transform.Find("Pentip").gameObject);
 }
Exemplo n.º 2
0
    //bool isSelect = false;

    void Awake()
    {
        //DontDestroyOnLoad(transform.parent.parent.parent.parent.gameObject);
        if (GameOptions.initialCameraPos != Vector3.zero)
        {
            Transform cameraTransform = transform.parent.parent.parent.parent;
            cameraTransform.position = GameOptions.initialCameraPos;
            cameraTransform.rotation = GameOptions.initialCameraRot;
        }
        //grabThreshold = 0.5f;
        //obj = null;
        controller = GetComponent <Oculus_TrackedController>();
        anim       = GetComponent <Oculus_HandAnim>();
    }