// Start is called before the first frame update void Start() { //pumaZaps = GetComponent<AudioSource>(); bossHolder = GameObject.Find("Voice Over Manager"); boss = bossHolder.GetComponent <voiceOverManagerLevelBoss>(); animBossMusicHolder = GameObject.Find("Music Manager"); animBossMusicStop = animBossMusicHolder.GetComponent <Animator>(); audioData = GetComponent <AudioSource>(); miles = GameObject.Find("MilesNewWorking"); cameraFollow = GameObject.Find("CameraFollowsThisObject"); playerHealth = GameObject.Find("RedHealth"); barHealth = startBarHealth; buttonNumber = Random.Range(0, 3); vcam = GameObject.Find("CM vcam1"); animHolder = GameObject.Find("Puma Master"); anim = animHolder.GetComponent <Animator>(); zoomer = vcam.GetComponent <CinemachineVirtualCamera>(); pumaName = miles.GetComponent <Movement>().pumaName; puma = GameObject.Find(pumaName); pumaController = puma.GetComponent <PumaController>(); vcam.GetComponent <CinemachineVirtualCamera>().Follow = gameObject.transform; StartCoroutine(ButtonSpawnDelay()); originalPosition = zoomer.m_Lens.FieldOfView; zoomInPosition = originalPosition - zoomInLength; Zoom(); //zoomer.m_Lens.FieldOfView = 25f; }
// Start is called before the first frame update void Start() { voiceOverManager = GameObject.Find("Voice Over Manager"); managerLevelOne = voiceOverManager.GetComponent <voiceOverManagerLevelBoss>(); player = GameObject.Find("MilesNewWorking"); }