Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        //Makes sure that there's an audio clip on the audio source, and makes sure it's playable.
        audioData      = GetComponent <AudioSource>();
        audioData.clip = Pavement;
        audioData.Play();
        audioData.loop = true;
        audioData.Pause();

        //Gets the crouch & zone component from the parent.
        cro  = GetComponentInParent <Crouch>();
        zone = GetComponentInParent <ZoneStatusUpdater>();
    }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     //Gets the ZoneStatuses script
     Zone = GetComponent <ZoneStatusUpdater>();
 }