コード例 #1
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;
    }
コード例 #2
0
 protected virtual void Start()
 {
     cameraAssisteeScript = GameObject.Find("mode_assiste").GetComponent <CameraAssistee> ();
 }