Example #1
0
    private VRFPSInputController controller = null;                             //a script that allows, among other things, to block inputs from the user


    void Start()
    {
        menu = GameObject.Find("KeyBindingMenu");
        menu.SetActive(false);                                                                          //at the begining of the simulation, the menu is hidden
        headNode   = GameObject.Find("HeadNode");
        keyb       = MiddleVR.VRDeviceMgr.GetKeyboard();
        controller = GetComponent <VRFPSInputController>();
        //menu.transform.parent = headNode.transform;
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        m_keyb     = MiddleVR.VRDeviceMgr.GetKeyboard();
        m_headNode = GameObject.Find("HeadNode");
        //m_menu = GameObject.Find ("VRMenu");
        //m_menuManager = m_menu.GetComponent<VRMenuManager> ();
        m_controller  = GameObject.Find("Utilisateur").GetComponent <VRFPSInputController>();
        m_wController = GameObject.Find("Utilisateur").GetComponent <WandOnlyController>();
        m_wand        = GameObject.Find("VRWand");

        Cursor.visible = false;
    }
Example #3
0
    // Use this for initialization
    void Start()
    {
        if (MiddleVR.VRDeviceMgr.GetKeyboard() != null)
        {
            keyb = MiddleVR.VRDeviceMgr.GetKeyboard();
        }
        inputController = utilisateur.GetComponent <VRFPSInputController> ();
        headNode        = GameObject.Find("HeadNode");
        wand            = GameObject.Find("VRWand");

        gliding   = false;
        frozen    = false;
        reversing = false;

        HideRenderer();
    }
Example #4
0
    // Use this for initialization
    void Start()
    {
        if (MiddleVR.VRDeviceMgr.GetKeyboard() != null)
        {
            keyb = MiddleVR.VRDeviceMgr.GetKeyboard();
        }
        inputController = utilisateur.GetComponent <VRFPSInputController> ();

        gliding   = false;
        frozen    = false;
        reversing = false;

        cameraAssisteeScript = GameObject.Find("mode_assiste").GetComponent <CameraAssistee> ();

        Vector3 obj    = destination.transform.position;
        float   height = GameObject.Find("HeadNode").transform.localPosition.y;

        obj.y -= height;
        destination.transform.position = obj;
    }
Example #5
0
 void Start()
 {
     keyb        = MiddleVR.VRDeviceMgr.GetKeyboard();
     gameManager = GameObject.Find("GameManager").GetComponent <Modelisation.GameManager>();
     vrfps       = GameObject.Find("Utilisateur").GetComponent <VRFPSInputController> ();
 }