64 lines
2.0 KiB
C#
64 lines
2.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom.Core.Audio
|
|
{
|
|
// Token: 0x02003081 RID: 12417
|
|
[Token(Token = "0x2003081")]
|
|
public class WorldSpaceMusicAudioSource : MonoBehaviour
|
|
{
|
|
// Token: 0x06015093 RID: 86163 RVA: 0x004E7904 File Offset: 0x004E5B04
|
|
[Token(Token = "0x6015093")]
|
|
[Address(RVA = "0x1CA57D0", Offset = "0x1CA47D0", VA = "0x181CA57D0")]
|
|
private void Awake()
|
|
{
|
|
AudioSource audioSource = this.audioSource;
|
|
int num = 0;
|
|
if (audioSource != num)
|
|
{
|
|
OKNNKFGFODL musicStartStopEvent = AudioManager.MusicStartStopEvent;
|
|
Action action = new Action(this.MBCJOKCIDCO);
|
|
AudioManager.MusicStartStopEvent = OKNNKFGFODL.BPJDFPACLMK(musicStartStopEvent, action);
|
|
AudioSource audioSource2 = this.audioSource;
|
|
bool flag = !AudioManager.IsPlayingMusic();
|
|
audioSource2.enabled = flag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06015094 RID: 86164 RVA: 0x004E7968 File Offset: 0x004E5B68
|
|
[Token(Token = "0x6015094")]
|
|
[Address(RVA = "0x1CA5990", Offset = "0x1CA4990", VA = "0x181CA5990")]
|
|
private void OnDestroy()
|
|
{
|
|
OKNNKFGFODL musicStartStopEvent = AudioManager.MusicStartStopEvent;
|
|
Action action = new Action(this.MBCJOKCIDCO);
|
|
AudioManager.MusicStartStopEvent = OKNNKFGFODL.GMNMHGMFGOL(musicStartStopEvent, action);
|
|
}
|
|
|
|
// Token: 0x06015095 RID: 86165 RVA: 0x004E7994 File Offset: 0x004E5B94
|
|
[Token(Token = "0x6015095")]
|
|
[Address(RVA = "0x1CA5920", Offset = "0x1CA4920", VA = "0x181CA5920")]
|
|
private void MBCJOKCIDCO()
|
|
{
|
|
AudioSource audioSource = this.audioSource;
|
|
bool flag = !AudioManager.IsPlayingMusic();
|
|
audioSource.enabled = flag;
|
|
}
|
|
|
|
// Token: 0x06015096 RID: 86166 RVA: 0x004E79C0 File Offset: 0x004E5BC0
|
|
[Token(Token = "0x6015096")]
|
|
[Address(RVA = "0x428AD0", Offset = "0x427AD0", VA = "0x180428AD0")]
|
|
public WorldSpaceMusicAudioSource()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400DE13 RID: 56851
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400DE13")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Self, false, false, false)]
|
|
private AudioSource audioSource;
|
|
}
|
|
}
|