void Start() { player = FindObjectOfType <PlayerController>(); clipPlayer = FindObjectOfType <ClipPlayer>(); audioSource = clipPlayer.GetComponent <AudioSource>(); FetchHead(); }
void Start() { rb = GetComponent <Rigidbody>(); head = GetComponentInChildren <Head>(); clipPlayer = FindObjectOfType <ClipPlayer>(); audioSource = clipPlayer.GetComponent <AudioSource>(); }
void Start() { currentHealth = totalHealth; cameraShaker = FindObjectOfType <CameraFollow>(); playAgainCanvas = FindObjectOfType <PlayAgain>(); score = FindObjectOfType <Score>(); clipPlayer = FindObjectOfType <ClipPlayer>(); clipAudioSource = clipPlayer.GetComponent <AudioSource>(); audioSource = GetComponent <AudioSource>(); playAgainCanvas.Hide(); }