void Start() { scriptedCam.enabled = false; durationOfAnim = camAnimation.length; playerMovement = character.GetComponent<TemporaryMovement>(); obstructD = mainCam.GetComponent<ObstructionDetector>(); //obstructD = mainCam.GetComponent<ObstructionDetector> (); }
void Start() { characterMovement = character.GetComponent<TemporaryMovement>(); }
void Start() { cam = GetComponent<Camera> (); defaultFOV = cam.fieldOfView; inverseYMouse = false; angleX = 0.0f; angleY = 0.0f; heightOffset.Set (0, cameraHeight, 0); offset = target.transform.position - transform.position; zoomDistance = minZoomDistance; initialPosition = transform.position; hidingPosition = Vector3.zero; characterMovement = target.GetComponent<TemporaryMovement> (); }
void Start() { //---------------------------------------------------// // set the volume of the sound sphere for this object// //---------------------------------------------------// if (this.gameObject.CompareTag ("Bottle")) { maxScale = 15.0f; //expireTimer = 1.0f; } else if (this.gameObject.CompareTag ("Glass")) { maxScale = 40.0f; } else if (this.gameObject.CompareTag ("Jar")) { maxScale = 50.0f; } expireTimer = defaultExpireTimer; timer = defaultTimer; playerMovement = GameObject.FindGameObjectWithTag("Player").GetComponent<TemporaryMovement>(); SFX = GameObject.Find ("SFX").GetComponent<sfxPlayer> (); broken = false; m_GroundCheckDistance = 0.6f; if (originalObject != null && brokenPieces != null) { originalObject.SetActive(true); brokenPieces.SetActive (false); } if (GetComponent<Rigidbody>() != null) { rb = GetComponent<Rigidbody>(); } if (GetComponent<Rigidbody>() != null) { rb = GetComponent<Rigidbody>(); } newSphere = (GameObject)Instantiate (Sphere, this.transform.position, Quaternion.identity); newSphere.transform.parent = transform; newSphere.SetActive (false); }
//private checkPoint cp; void Start() { isHiding = false; isPaused = false; isEntered = false; //cp = character.GetComponent<checkPoint>(); ros = character.FindChild ("Smell ring FBX").GetComponent<ringOfSmell>(); playerScript = character.GetComponent<TemporaryMovement>(); characterCamera = playerScript.mainCam.GetComponent<thirdPersonCamera> (); //cameraPosition.localRotation = Quaternion.Euler(0, transform.parent.eulerAngles.y, 0); //Debug.Log (cameraPosition.eulerAngles.y); showHiding.SetActive(false); }
void Start() { sendBack = false; player = this.gameObject; chaseTransScript = GameObject.Find ("BGM").GetComponent<chaseTransition>(); // get chase music transition script playerScript = player.GetComponent<TemporaryMovement>(); checkpointNumber = 0; // No checkpoint has pass through yet, therefore 0 }