Esempio n. 1
0
 void Awake()
 {
     instance                     = this;
     this.audioSource             = this.gameObject.GetComponent <AudioSource>() as AudioSource;
     this.audioSource.rolloffMode = AudioRolloffMode.Linear;
     this.audioSource.volume      = 0.3f;
 }
Esempio n. 2
0
 void Awake() {
     instance = this;
     this.audioSource = this.gameObject.GetComponent<AudioSource>() as AudioSource;
     this.audioSource.rolloffMode = AudioRolloffMode.Linear;
     this.audioSource.volume = 0.3f;
 }