// Use this for initialization void Start() { cp_Ref = GameObject.FindObjectOfType <CheckpointValues>(); //ObjectivePlayer = GetComponent<AudioSource>(); subRef = this.GetComponentInChildren <SubtitleManager>(); //SetState_CLOTHES(); }
// Use this for initialization void Start() { //Bigfoot = GameObject.Find("Bigfoot"); playermovement_Ref = Bigfoot.GetComponent <PlayerMovement>(); CameraAnimation = IntroCamera.GetComponent <Animation>(); fadeIn_Ref = GameObject.Find("Cutscenes Manager").GetComponent <FadeInGame>(); subtitlesRef = GameObject.FindObjectOfType <SubtitleManager>().GetComponent <SubtitleManager>(); cpvRef = GameObject.FindObjectOfType <CheckpointValues>().GetComponent <CheckpointValues>(); IntroCamera.SetActive(false); }
// Use this for initialization void Start() { //Bigfoot = GameObject.Find("Bigfoot"); checkpointValues_ref = GameObject.Find("GameManager").GetComponent <CheckpointValues>(); }