scripts
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
using RecRoom.Core.Pools;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x02000095 RID: 149
|
||||
[Token(Token = "0x2000095")]
|
||||
[StructLayout(3)]
|
||||
public class Dartboard : MonoBehaviour
|
||||
{
|
||||
// Token: 0x0600040C RID: 1036 RVA: 0x00014CEC File Offset: 0x00012EEC
|
||||
[Token(Token = "0x600040C")]
|
||||
[Address(RVA = "0x169D580", Offset = "0x169BF80", VA = "0x18169D580")]
|
||||
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: 0x0600040D RID: 1037 RVA: 0x00014E00 File Offset: 0x00013000
|
||||
[Token(Token = "0x600040D")]
|
||||
[Address(RVA = "0x169D920", Offset = "0x169C320", VA = "0x18169D920")]
|
||||
public Dartboard()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000395 RID: 917
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000395")]
|
||||
public float bullseyeRadius = 0.07f;
|
||||
|
||||
// Token: 0x04000396 RID: 918
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4000396")]
|
||||
public float innerRadius = 0.15f;
|
||||
|
||||
// Token: 0x04000397 RID: 919
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000397")]
|
||||
public float outerRadius = 0.3f;
|
||||
|
||||
// Token: 0x04000398 RID: 920
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000398")]
|
||||
public PooledParticle HitParticleOuter;
|
||||
|
||||
// Token: 0x04000399 RID: 921
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000399")]
|
||||
public PooledParticle HitParticleInner;
|
||||
|
||||
// Token: 0x0400039A RID: 922
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400039A")]
|
||||
public PooledParticle HitParticleBullseye;
|
||||
|
||||
// Token: 0x0400039B RID: 923
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400039B")]
|
||||
public RecRoomAudioClip HitAudio;
|
||||
}
|
||||
Reference in New Issue
Block a user