Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

108 lines
2.9 KiB
C#

using System;
using Cpp2IlInjected;
using RecRoom.Core.Pools;
using UnityEngine;
// Token: 0x02000075 RID: 117
[Token(Token = "0x2000075")]
public class Dartboard : MonoBehaviour
{
// Token: 0x06000328 RID: 808 RVA: 0x000114C8 File Offset: 0x0000F6C8
[Token(Token = "0x6000328")]
[Address(RVA = "0x1081160", Offset = "0x107FF60", VA = "0x181081160")]
private void OnTriggerEnter(Collider GLPOLGOBLAA)
{
Tool tool = GLPOLGOBLAA.AMKJBLIFHPB();
int num = 0;
if (tool != num)
{
Dart component = tool.GetComponent<Dart>();
}
int num2 = 0;
int num3 = 0;
if (num2 != num3)
{
Transform transform = base.transform;
Vector3 vector;
float z = vector.z;
Transform transform2 = GLPOLGOBLAA.transform;
Vector3 vector2;
float z2 = vector2.z;
GlobalPool instance = GlobalPool.ONCPNMDGGKG;
PooledParticle hitParticleOuter = this.HitParticleOuter;
PooledParticle pooledParticle = instance.Acquire<PooledParticle>(hitParticleOuter);
float num4;
if (this.bullseyeRadius <= num4)
{
if (this.innerRadius <= num4)
{
goto IL_A7;
}
GlobalPool instance2 = GlobalPool.ONCPNMDGGKG;
}
GlobalPool instance3 = GlobalPool.ONCPNMDGGKG;
PooledParticle hitParticleBullseye = this.HitParticleBullseye;
PooledParticle pooledParticle2 = instance3.Acquire<PooledParticle>(hitParticleBullseye);
IL_A7:
if (this.outerRadius > num4)
{
int num5 = 0;
if (pooledParticle2 != num5)
{
Transform transform3 = GLPOLGOBLAA.transform;
Vector3 vector3;
float z3 = vector3.z;
Transform transform4 = GLPOLGOBLAA.transform;
}
RecRoomAudioClip hitAudio = this.HitAudio;
Transform transform5 = base.transform;
int num6 = 0;
int num7 = 0;
SFXAudioSource sfxaudioSource = AudioManager.Play3DSFX(hitAudio, transform5, num7, num6);
}
}
}
// Token: 0x06000329 RID: 809 RVA: 0x000115DC File Offset: 0x0000F7DC
[Token(Token = "0x6000329")]
[Address(RVA = "0x1081500", Offset = "0x1080300", VA = "0x181081500")]
public Dartboard()
{
}
// Token: 0x040002B3 RID: 691
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40002B3")]
public float bullseyeRadius = 0.07f;
// Token: 0x040002B4 RID: 692
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x40002B4")]
public float innerRadius = 0.15f;
// Token: 0x040002B5 RID: 693
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40002B5")]
public float outerRadius = 0.3f;
// Token: 0x040002B6 RID: 694
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40002B6")]
public PooledParticle HitParticleOuter;
// Token: 0x040002B7 RID: 695
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40002B7")]
public PooledParticle HitParticleInner;
// Token: 0x040002B8 RID: 696
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40002B8")]
public PooledParticle HitParticleBullseye;
// Token: 0x040002B9 RID: 697
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40002B9")]
public RecRoomAudioClip HitAudio;
}