Beispiel #1
0
 protected override void Awake()
 {
     thisTransform       = transform;
     characterController = GetComponent <CatlikeController>();
     cameraController    = GetComponentInChildren <VRCameraController>();
     view  = GetComponent <PhotonView>();
     delay = new WaitForSeconds(delayTime);
 }
    /// <summary>
    /// Called before the first frame
    ///
    /// Load the molecuel specified from the main menu
    /// </summary>
    void Awake( )
    {
        string molecule = SceneManager.GetParameter("Molecule");

        GameObject molPrefab = ( GameObject )Resources.Load(molecule);
        GameObject mol       = Instantiate(molPrefab, Vector3.zero, Quaternion.identity);

        VRCameraController camera = Camera.main.GetComponent <VRCameraController> ( );

        camera.Target = mol.transform;
    }
 void Awake( )
 {
     VRCamera   = Camera.main.GetComponent <VRCameraController> ( );
     ButtonText = GetComponentInChildren <Text> ( );
 }