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