55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Pools;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000672 RID: 1650
|
|
[Token(Token = "0x2000672")]
|
|
public class TreeLeafTrigger : MonoBehaviour
|
|
{
|
|
// Token: 0x06002FCE RID: 12238 RVA: 0x000C3E38 File Offset: 0x000C2038
|
|
[Token(Token = "0x6002FCE")]
|
|
[Address(RVA = "0x84A6E0", Offset = "0x8494E0", VA = "0x18084A6E0")]
|
|
private void OnTriggerEnter(Collider GLPOLGOBLAA)
|
|
{
|
|
if (this.playParticles)
|
|
{
|
|
PooledParticle pooledParticle = this.leafParticlesPrefab;
|
|
int num = 0;
|
|
if (pooledParticle != num)
|
|
{
|
|
GlobalPool instance = GlobalPool.ONCPNMDGGKG;
|
|
PooledParticle pooledParticle2 = this.leafParticlesPrefab;
|
|
PooledParticle pooledParticle3 = instance.Acquire<PooledParticle>(pooledParticle2);
|
|
int num2 = 0;
|
|
if (pooledParticle3 != num2)
|
|
{
|
|
Transform transform = GLPOLGOBLAA.transform;
|
|
Vector3 vector;
|
|
float z = vector.z;
|
|
Quaternion identity = Quaternion.identity;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002FCF RID: 12239 RVA: 0x000C3EA8 File Offset: 0x000C20A8
|
|
[Token(Token = "0x6002FCF")]
|
|
[Address(RVA = "0x7E78F0", Offset = "0x7E66F0", VA = "0x1807E78F0")]
|
|
public TreeLeafTrigger()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040027AB RID: 10155
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40027AB")]
|
|
[SerializeField]
|
|
private PooledParticle leafParticlesPrefab;
|
|
|
|
// Token: 0x040027AC RID: 10156
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40027AC")]
|
|
[SerializeField]
|
|
private bool playParticles = true;
|
|
}
|