Beispiel #1
0
    // Use this for initialization
    private void Start()
    {
        crosshairRift = GameObject.FindGameObjectWithTag("CrosshairRift").GetComponent<MeshRenderer>();
        //crosshairVive = GameObject.FindGameObjectWithTag("CrosshairVive").GetComponent<MeshRenderer>();

        gazeEye = GameObject.Find("[CameraRig]/Camera (head)/Camera (eye)").GetComponent<TestRaycast>();
        mouseLook = GameObject.Find("[CameraRig]/Camera (head)").GetComponent<MouseLook>();

        playerRig = GameObject.Find("[CameraRig]");
        var vrSpace = GameObject.Find("[SteamVR]").transform.position;
    }
Beispiel #2
0
 public void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != null)
     {
         Destroy(gameObject);
     }
 }