Add source files
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000061 RID: 97
|
||||
public class CoolAudioSource : MonoBehaviour
|
||||
{
|
||||
// Token: 0x06000B52 RID: 2898 RVA: 0x000DD8A8 File Offset: 0x000DBAA8
|
||||
private void Awake()
|
||||
{
|
||||
this.audioSource = base.gameObject.GetComponent<AudioSource>();
|
||||
this.audioSource.loop = this.loopIt;
|
||||
if (this.is2D)
|
||||
{
|
||||
this.audioSource.spatialBlend = 0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.audioSource.spatialBlend = 1f;
|
||||
}
|
||||
if (this.playOnAwake)
|
||||
{
|
||||
this.audioSource.playOnAwake = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.audioSource.playOnAwake = false;
|
||||
}
|
||||
this.audioSource.volume = 0f;
|
||||
this.audioSource.priority = 1;
|
||||
base.enabled = false;
|
||||
}
|
||||
|
||||
// Token: 0x0400108C RID: 4236
|
||||
[Header("FOR JOSEPH")]
|
||||
public bool playOnAwake;
|
||||
|
||||
// Token: 0x0400108D RID: 4237
|
||||
public bool loopIt;
|
||||
|
||||
// Token: 0x0400108E RID: 4238
|
||||
public bool is2D;
|
||||
|
||||
// Token: 0x0400108F RID: 4239
|
||||
public bool playOnceThenWaitForCharacterToReturn;
|
||||
|
||||
// Token: 0x04001090 RID: 4240
|
||||
public bool playEveryTimePlayerIsNear;
|
||||
|
||||
// Token: 0x04001091 RID: 4241
|
||||
[Header("FOR HANNAH")]
|
||||
public AudioSource audioSource;
|
||||
}
|
Reference in New Issue
Block a user