Files
2026-04-08 23:40:05 +02:00

66 lines
2.0 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
namespace RecRoom.Core.Audio
{
// Token: 0x02002AB0 RID: 10928
[Token(Token = "0x2002AB0")]
[StructLayout(3)]
public class WorldSpaceMusicAudioSource : MonoBehaviour
{
// Token: 0x06013202 RID: 78338 RVA: 0x0049886C File Offset: 0x00496A6C
[Token(Token = "0x6013202")]
[Address(RVA = "0x186BBA0", Offset = "0x186A5A0", VA = "0x18186BBA0")]
private void Awake()
{
AudioSource audioSource = this.audioSource;
int num = 0;
if (audioSource != num)
{
ActionEvent musicStartStopEvent = AudioManager.MusicStartStopEvent;
Action action = new Action(this.MBCJOKCIDCO);
AudioManager.MusicStartStopEvent = musicStartStopEvent + action;
AudioSource audioSource2 = this.audioSource;
bool flag = !AudioManager.IsPlayingMusic();
audioSource2.enabled = flag;
}
}
// Token: 0x06013203 RID: 78339 RVA: 0x004988D0 File Offset: 0x00496AD0
[Token(Token = "0x6013203")]
[Address(RVA = "0x186BD60", Offset = "0x186A760", VA = "0x18186BD60")]
private void OnDestroy()
{
ActionEvent musicStartStopEvent = AudioManager.MusicStartStopEvent;
Action action = new Action(this.MBCJOKCIDCO);
AudioManager.MusicStartStopEvent = musicStartStopEvent - action;
}
// Token: 0x06013204 RID: 78340 RVA: 0x004988FC File Offset: 0x00496AFC
[Token(Token = "0x6013204")]
[Address(RVA = "0x186BCF0", Offset = "0x186A6F0", VA = "0x18186BCF0")]
private void MBCJOKCIDCO()
{
AudioSource audioSource = this.audioSource;
bool flag = !AudioManager.IsPlayingMusic();
audioSource.enabled = flag;
}
// Token: 0x06013205 RID: 78341 RVA: 0x00498928 File Offset: 0x00496B28
[Token(Token = "0x6013205")]
[Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")]
public WorldSpaceMusicAudioSource()
{
}
// Token: 0x0400CFD7 RID: 53207
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400CFD7")]
[SerializeField]
[DDPIINEJFMD(JIBDPHMGEGO.Self, false, false)]
private AudioSource audioSource;
}
}