Esempio n. 1
0
 void Awake()
 {
     player         = GameObject.FindGameObjectWithTag("Player");
     playerHealth   = player.GetComponent <PlayerHealth>();
     petSoundPlayer = new CharacterSoundPlayer(GetComponent <AudioSource>(), audioClips);
 }
 void Awake()
 {
     currentHealth = startingHealth;
     soundPlayer   = new CharacterSoundPlayer(GetComponent <AudioSource>(), hitAudioClips);
 }
Esempio n. 3
0
 void Start()
 {
     counter = initialCount;
     InvokeRepeating("DecrementCounter", secondsBetweenDecrements, secondsBetweenDecrements);
     petSoundPlayer = new CharacterSoundPlayer(GetComponent <AudioSource>(), audioClips);
 }