scripts
This commit is contained in:
@@ -0,0 +1,302 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RecRoom.Core.AI
|
||||
{
|
||||
// Token: 0x02000B73 RID: 2931
|
||||
public class EnemyParticles : MonoBehaviour
|
||||
{
|
||||
// Token: 0x060162A9 RID: 90793 RVA: 0x00620FE8 File Offset: 0x0061F1E8
|
||||
public void KIPJJGMNGDP()
|
||||
{
|
||||
if (this.JCDCCADJCEA != null)
|
||||
{
|
||||
this.JCDCCADJCEA.Stop();
|
||||
this.JCDCCADJCEA = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162AA RID: 90794 RVA: 0x00621010 File Offset: 0x0061F210
|
||||
public void OnExplode()
|
||||
{
|
||||
if (this.onExplodeParticles != null)
|
||||
{
|
||||
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.onExplodeParticles);
|
||||
if (pooledParticle != null)
|
||||
{
|
||||
pooledParticle.Play(base.transform.position, Quaternion.LookRotation(Vector3.up, Vector3.up), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162AB RID: 90795 RVA: 0x0062106C File Offset: 0x0061F26C
|
||||
public void NFKMENJDMLO()
|
||||
{
|
||||
if (this.onExplodeParticles != null)
|
||||
{
|
||||
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.onExplodeParticles);
|
||||
if (pooledParticle != null)
|
||||
{
|
||||
pooledParticle.Play(base.transform.position, Quaternion.LookRotation(Vector3.up, Vector3.up), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162AC RID: 90796 RVA: 0x006210C8 File Offset: 0x0061F2C8
|
||||
private void OnDestroy()
|
||||
{
|
||||
this.StopCharge();
|
||||
}
|
||||
|
||||
// Token: 0x060162AD RID: 90797 RVA: 0x006210D0 File Offset: 0x0061F2D0
|
||||
private void DCGCFFFPABH()
|
||||
{
|
||||
this.KIPJJGMNGDP();
|
||||
}
|
||||
|
||||
// Token: 0x060162AF RID: 90799 RVA: 0x006210E0 File Offset: 0x0061F2E0
|
||||
public void AJNGFDHNCHK()
|
||||
{
|
||||
if (this.onExplodeParticles != null)
|
||||
{
|
||||
PooledParticle pooledParticle = ObjectPool.NFHMLKPHCFF().Acquire<PooledParticle>(this.onExplodeParticles);
|
||||
if (pooledParticle != null)
|
||||
{
|
||||
pooledParticle.AONJILIKFOI(base.transform.position, Quaternion.LookRotation(Vector3.up, Vector3.up), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162B0 RID: 90800 RVA: 0x0062113C File Offset: 0x0061F33C
|
||||
public void OnTakeDamage(MHEBDODJGOA JJGLGHCMDEN, Vector3 GDOEBLPCPJF, Vector3 KPHKJDIILFC)
|
||||
{
|
||||
PooledParticle pooledParticle;
|
||||
if (Enemy.IsShield(JJGLGHCMDEN))
|
||||
{
|
||||
pooledParticle = this.onShieldedDamageParticles;
|
||||
}
|
||||
else if (Enemy.IsCriticalHit(JJGLGHCMDEN))
|
||||
{
|
||||
pooledParticle = this.onCriticalHitDamageParticles;
|
||||
}
|
||||
else
|
||||
{
|
||||
pooledParticle = this.onDamageParticles;
|
||||
}
|
||||
if (pooledParticle == null)
|
||||
{
|
||||
pooledParticle = this.defaultDamageParticles;
|
||||
}
|
||||
if (pooledParticle != null)
|
||||
{
|
||||
PooledParticle pooledParticle2 = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(pooledParticle);
|
||||
if (pooledParticle2 != null)
|
||||
{
|
||||
pooledParticle2.Play(GDOEBLPCPJF + KPHKJDIILFC * this.damageParticleZBias, Quaternion.LookRotation(KPHKJDIILFC, Vector3.up), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162B1 RID: 90801 RVA: 0x006211DC File Offset: 0x0061F3DC
|
||||
public void OnAggro(Transform DKCNBKFJCLK, Vector3 COHGEHOALPI)
|
||||
{
|
||||
if (this.onAlertParticles != null)
|
||||
{
|
||||
PooledParticle pooledParticle = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.onAlertParticles);
|
||||
if (pooledParticle != null)
|
||||
{
|
||||
pooledParticle.Play(DKCNBKFJCLK, COHGEHOALPI, Quaternion.identity, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162B2 RID: 90802 RVA: 0x00621228 File Offset: 0x0061F428
|
||||
public void StopCharge()
|
||||
{
|
||||
if (this.JCDCCADJCEA != null)
|
||||
{
|
||||
this.JCDCCADJCEA.Stop();
|
||||
this.JCDCCADJCEA = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162B3 RID: 90803 RVA: 0x00621250 File Offset: 0x0061F450
|
||||
public void FGIOCKBONMK(Transform DKCNBKFJCLK)
|
||||
{
|
||||
this.StopCharge();
|
||||
if (this.onChargeParticles != null)
|
||||
{
|
||||
this.JCDCCADJCEA = ObjectPool.NFHMLKPHCFF().Acquire<PooledParticle>(this.onChargeParticles);
|
||||
if (this.JCDCCADJCEA != null)
|
||||
{
|
||||
this.JCDCCADJCEA.Play(DKCNBKFJCLK, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162B4 RID: 90804 RVA: 0x006212A8 File Offset: 0x0061F4A8
|
||||
public void CBDLLDNLNFI(MHEBDODJGOA JJGLGHCMDEN, Vector3 GDOEBLPCPJF, Vector3 KPHKJDIILFC)
|
||||
{
|
||||
PooledParticle pooledParticle;
|
||||
if (Enemy.IsShield(JJGLGHCMDEN))
|
||||
{
|
||||
pooledParticle = this.onShieldedDamageParticles;
|
||||
}
|
||||
else if (Enemy.IsCriticalHit(JJGLGHCMDEN))
|
||||
{
|
||||
pooledParticle = this.onCriticalHitDamageParticles;
|
||||
}
|
||||
else
|
||||
{
|
||||
pooledParticle = this.onDamageParticles;
|
||||
}
|
||||
if (pooledParticle == null)
|
||||
{
|
||||
pooledParticle = this.defaultDamageParticles;
|
||||
}
|
||||
if (pooledParticle != null)
|
||||
{
|
||||
PooledParticle pooledParticle2 = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(pooledParticle);
|
||||
if (pooledParticle2 != null)
|
||||
{
|
||||
pooledParticle2.Play(GDOEBLPCPJF + KPHKJDIILFC * this.damageParticleZBias, Quaternion.LookRotation(KPHKJDIILFC, Vector3.up), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162B5 RID: 90805 RVA: 0x00621348 File Offset: 0x0061F548
|
||||
public void LCNNPGLOLFB(Transform DKCNBKFJCLK, Vector3 COHGEHOALPI)
|
||||
{
|
||||
if (this.onAlertParticles != null)
|
||||
{
|
||||
PooledParticle pooledParticle = ObjectPool.NFHMLKPHCFF().Acquire<PooledParticle>(this.onAlertParticles);
|
||||
if (pooledParticle != null)
|
||||
{
|
||||
pooledParticle.Play(DKCNBKFJCLK, COHGEHOALPI, Quaternion.identity, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162B6 RID: 90806 RVA: 0x00621394 File Offset: 0x0061F594
|
||||
public void StartCharge(Transform DKCNBKFJCLK)
|
||||
{
|
||||
this.StopCharge();
|
||||
if (this.onChargeParticles != null)
|
||||
{
|
||||
this.JCDCCADJCEA = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(this.onChargeParticles);
|
||||
if (this.JCDCCADJCEA != null)
|
||||
{
|
||||
this.JCDCCADJCEA.Play(DKCNBKFJCLK, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162B7 RID: 90807 RVA: 0x006213EC File Offset: 0x0061F5EC
|
||||
public void KIFLLBIIEGA(MHEBDODJGOA JJGLGHCMDEN, Vector3 GDOEBLPCPJF, Vector3 KPHKJDIILFC)
|
||||
{
|
||||
PooledParticle pooledParticle;
|
||||
if (Enemy.IsCriticalHit(JJGLGHCMDEN))
|
||||
{
|
||||
pooledParticle = this.onCriticalHitKillParticles;
|
||||
}
|
||||
else
|
||||
{
|
||||
pooledParticle = this.onKillParticles;
|
||||
}
|
||||
if (pooledParticle == null)
|
||||
{
|
||||
pooledParticle = this.defaultKillParticles;
|
||||
}
|
||||
if (pooledParticle != null)
|
||||
{
|
||||
PooledParticle pooledParticle2 = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(pooledParticle);
|
||||
if (pooledParticle2 != null)
|
||||
{
|
||||
pooledParticle2.NAPGKLNBMHN(GDOEBLPCPJF + KPHKJDIILFC * this.killParticleZBias, Quaternion.LookRotation(KPHKJDIILFC, Vector3.up), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060162B8 RID: 90808 RVA: 0x00621474 File Offset: 0x0061F674
|
||||
public void OnKill(MHEBDODJGOA JJGLGHCMDEN, Vector3 GDOEBLPCPJF, Vector3 KPHKJDIILFC)
|
||||
{
|
||||
PooledParticle pooledParticle;
|
||||
if (Enemy.IsCriticalHit(JJGLGHCMDEN))
|
||||
{
|
||||
pooledParticle = this.onCriticalHitKillParticles;
|
||||
}
|
||||
else
|
||||
{
|
||||
pooledParticle = this.onKillParticles;
|
||||
}
|
||||
if (pooledParticle == null)
|
||||
{
|
||||
pooledParticle = this.defaultKillParticles;
|
||||
}
|
||||
if (pooledParticle != null)
|
||||
{
|
||||
PooledParticle pooledParticle2 = ObjectPool.NCKMBFBMBFM.Acquire<PooledParticle>(pooledParticle);
|
||||
if (pooledParticle2 != null)
|
||||
{
|
||||
pooledParticle2.Play(GDOEBLPCPJF + KPHKJDIILFC * this.killParticleZBias, Quaternion.LookRotation(KPHKJDIILFC, Vector3.up), false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04003E0F RID: 15887
|
||||
[SerializeField]
|
||||
[Header("Damage Particles")]
|
||||
private PooledParticle defaultDamageParticles;
|
||||
|
||||
// Token: 0x04003E10 RID: 15888
|
||||
[SerializeField]
|
||||
private PooledParticle onDamageParticles;
|
||||
|
||||
// Token: 0x04003E11 RID: 15889
|
||||
[SerializeField]
|
||||
private PooledParticle onShieldedDamageParticles;
|
||||
|
||||
// Token: 0x04003E12 RID: 15890
|
||||
[SerializeField]
|
||||
private PooledParticle onCriticalHitDamageParticles;
|
||||
|
||||
// Token: 0x04003E13 RID: 15891
|
||||
[SerializeField]
|
||||
private float damageParticleZBias;
|
||||
|
||||
// Token: 0x04003E14 RID: 15892
|
||||
[SerializeField]
|
||||
[Header("Kill Particles")]
|
||||
private PooledParticle defaultKillParticles;
|
||||
|
||||
// Token: 0x04003E15 RID: 15893
|
||||
[SerializeField]
|
||||
private PooledParticle onKillParticles;
|
||||
|
||||
// Token: 0x04003E16 RID: 15894
|
||||
[SerializeField]
|
||||
private PooledParticle onCriticalHitKillParticles;
|
||||
|
||||
// Token: 0x04003E17 RID: 15895
|
||||
[SerializeField]
|
||||
private float killParticleZBias;
|
||||
|
||||
// Token: 0x04003E18 RID: 15896
|
||||
[Header("Alert")]
|
||||
[SerializeField]
|
||||
private PooledParticle onAlertParticles;
|
||||
|
||||
// Token: 0x04003E19 RID: 15897
|
||||
[Header("Charge")]
|
||||
[SerializeField]
|
||||
private PooledParticle onChargeParticles;
|
||||
|
||||
// Token: 0x04003E1A RID: 15898
|
||||
[Header("Explosion")]
|
||||
[SerializeField]
|
||||
private PooledParticle onExplodeParticles;
|
||||
|
||||
// Token: 0x04003E1B RID: 15899
|
||||
private PooledParticle JCDCCADJCEA;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user