Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     finalPos = this.transform.localPosition;
     this.transform.LookAt(GameObject.Find("10105_Computer Keyboard_v1_L3").transform);
     this.transform.localPosition += new Vector3(0.0f, InitialHeight, InitialZ);
     player        = GameObject.Find("Player");
     CamMoveScript = player.GetComponent <MoveCam>();
     MainCam       = player.GetComponent <Camera>();
     //disable camera controller at first and look from sky
     CamMoveScript.enabled = false;
     //change camera FOV as well
     this.GetComponent <ChangeFoV>().enabled = true;
 }
 // Start is called before the first frame update
 void Start()
 {
     finalPos = this.transform.localPosition;
     this.transform.localPosition = finalPos + new Vector3(0.0f, InitialHeight, 0.0f);
     player         = GameObject.Find("Player");
     CamMoveScript  = player.GetComponent <MoveCam>();
     BeginningSound = GameObject.Find("BeginningSound");
     //disable camera controller at first and look from sky
     CamMoveScript.enabled = false;
     this.transform.LookAt(player.transform);
     this.transform.RotateAround(transform.position, transform.forward, 180f);
     UIs = GameObject.Find("UIs");
     UIs.SetActive(false);
     BeginningSound.SetActive(true);
 }
Example #3
0
 // Use this for initialization
 void Start()
 {
     pressed = false;
     cam     = GameObject.Find("Main Camera").GetComponent <MoveCam>();
 }
Example #4
0
 void Start()
 {
     cameraComponent = this.GetComponent <Camera>();
     MoveCam         = this.GetComponent <MoveCam>();
     UpdateCamZoom(BaseSize);
 }