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