using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020001A3 RID: 419
[Token(Token = "0x20001A3")]
public class Level04Room08 : MonoBehaviour
{
	// Token: 0x060012CF RID: 4815 RVA: 0x0002B350 File Offset: 0x00029550
	[Token(Token = "0x60012CF")]
	[Address(RVA = "0x3F42A0", Offset = "0x3F30A0", VA = "0x1803F42A0")]
	private void Start()
	{
		Shake shake = new Shake();
		this.g_ShakeOriginal01 = shake;
		GameObject original = this.Original01;
		Shake shake2 = this.g_ShakeOriginal01;
		Transform transform = original.transform;
		shake2.Start(transform, true);
		Shake shake3 = new Shake();
		this.g_ShakeOriginal02 = shake3;
		GameObject original2 = this.Original02;
		Shake shake4 = this.g_ShakeOriginal02;
		Transform transform2 = original2.transform;
		shake4.Start(transform2, true);
		GameObject se_RockFallCollision = this.SE_RockFallCollision;
		Transform transform3 = base.transform;
		ulong num;
		SoundEffectPool soundEffectPool = new SoundEffectPool(se_RockFallCollision, transform3, 6, num != 0UL);
		this.g_SERockFallCollision = soundEffectPool;
		GameObject se_Damage = this.SE_Damage;
		Transform transform4 = base.transform;
		SoundEffect soundEffectOfPrefabs = Common.GetSoundEffectOfPrefabs(se_Damage, transform4);
		this.g_SEDamage = soundEffectOfPrefabs;
		Game.BindStageTimeScale(this.g_SEDamage);
		GameObject se_HitPlayer = this.SE_HitPlayer;
		Transform transform5 = base.transform;
		SoundEffect soundEffectOfPrefabs2 = Common.GetSoundEffectOfPrefabs(se_HitPlayer, transform5);
		this.g_SEHitPlayer = soundEffectOfPrefabs2;
		Game.BindStageTimeScale(this.g_SEHitPlayer);
		if (Game.GameSave.flags.stage04Room08)
		{
			this.Skip();
			GameObject original3 = this.Original06;
			int num2 = 0;
			original3.SetActive(num2 != 0);
		}
	}

	// Token: 0x060012D0 RID: 4816 RVA: 0x0002B470 File Offset: 0x00029670
	[Token(Token = "0x60012D0")]
	[Address(RVA = "0x3F4530", Offset = "0x3F3330", VA = "0x1803F4530")]
	private void Update()
	{
		float stageTimeScale = Game.GetStageTimeScale();
		float num = this.g_fTimeScale;
		Animator ani = this.Ani;
		this.g_fTimeScale = stageTimeScale;
		num = stageTimeScale;
		ani.speed = num;
		float num2 = this.g_fTimeScale;
		Common.SetEffectTimeScale(this.PS_Damage01, num2);
		float num3 = this.g_fTimeScale;
		Common.SetEffectTimeScale(this.PS_Damage02, num3);
		float num4 = this.g_fTimeScale;
		Common.SetEffectTimeScale(this.PS_Damage03, num4);
		float num5 = this.g_fTimeScale;
		Common.SetEffectTimeScale(this.PS_Damage04, num5);
		float num6 = this.g_fTimeScale;
		Common.SetEffectTimeScale(this.PS_Damage05, num6);
		float num7 = this.g_fTimeScale;
		Common.SetEffectTimeScale(this.PS_FallRock, num7);
	}

	// Token: 0x060012D1 RID: 4817 RVA: 0x0002B528 File Offset: 0x00029728
	[Token(Token = "0x60012D1")]
	[Address(RVA = "0x3F3AC0", Offset = "0x3F28C0", VA = "0x1803F3AC0")]
	public void PlayPSRockFall()
	{
		this.PS_RockFall.Play(true);
	}

	// Token: 0x060012D2 RID: 4818 RVA: 0x0002B548 File Offset: 0x00029748
	[Token(Token = "0x60012D2")]
	[Address(RVA = "0x3F4500", Offset = "0x3F3300", VA = "0x1803F4500")]
	public void StopPSRockFall()
	{
		this.PS_RockFall.Stop(true);
	}

	// Token: 0x060012D3 RID: 4819 RVA: 0x0002B568 File Offset: 0x00029768
	[Token(Token = "0x60012D3")]
	[Address(RVA = "0x3F38A0", Offset = "0x3F26A0", VA = "0x1803F38A0")]
	public void PlayPSBlockCat()
	{
		this.PS_BlockCat.Play(true);
	}

	// Token: 0x060012D4 RID: 4820 RVA: 0x0002B588 File Offset: 0x00029788
	[Token(Token = "0x60012D4")]
	[Address(RVA = "0x3F38D0", Offset = "0x3F26D0", VA = "0x1803F38D0")]
	public void PlayPSDamage01Ready()
	{
		this.PS_DamageReady01.Play(true);
		Shake shake = this.g_ShakeOriginal01;
		int num = 0;
		ulong num2;
		shake.SetRandomShake(0.6f, 25f, 5f, (float)num, num2 != 0UL);
		this.g_SEDamage.PlayRandom(1f, 1f);
	}

	// Token: 0x060012D5 RID: 4821 RVA: 0x0002B5DC File Offset: 0x000297DC
	[Token(Token = "0x60012D5")]
	[Address(RVA = "0x3F3BA0", Offset = "0x3F29A0", VA = "0x1803F3BA0")]
	public void SetDamage01()
	{
		GameObject gameObject = this.Original01.gameObject;
		int num = 0;
		gameObject.SetActive(num != 0);
		this.Damage01.SetDamage();
		this.PS_Damage01.Play(true);
		this.PS_DamageReady01.Stop(true);
		PlayerCamera cameraController = Game.GetCameraController();
		int num2 = 0;
		ulong num3;
		cameraController.SetRandomShake(0.9f, 6f, 1.5f, (float)num2, num3 != 0UL);
	}

	// Token: 0x060012D6 RID: 4822 RVA: 0x0002B64C File Offset: 0x0002984C
	[Token(Token = "0x60012D6")]
	[Address(RVA = "0x3F3960", Offset = "0x3F2760", VA = "0x1803F3960")]
	public void PlayPSDamage02Ready()
	{
		this.PS_DamageReady02.Play(true);
		Shake shake = this.g_ShakeOriginal02;
		int num = 0;
		ulong num2;
		shake.SetRandomShake(0.6f, 25f, 5f, (float)num, num2 != 0UL);
		this.g_SEDamage.PlayRandom(1f, 1f);
	}

	// Token: 0x060012D7 RID: 4823 RVA: 0x0002B6A0 File Offset: 0x000298A0
	[Token(Token = "0x60012D7")]
	[Address(RVA = "0x3F3CA0", Offset = "0x3F2AA0", VA = "0x1803F3CA0")]
	public void SetDamage02()
	{
		GameObject gameObject = this.Original02.gameObject;
		int num = 0;
		gameObject.SetActive(num != 0);
		this.Damage02.SetDamage();
		this.PS_Damage02.Play(true);
		this.PS_DamageReady02.Stop(true);
		PlayerCamera cameraController = Game.GetCameraController();
		int num2 = 0;
		ulong num3;
		cameraController.SetRandomShake(0.9f, 6f, 1.5f, (float)num2, num3 != 0UL);
	}

	// Token: 0x060012D8 RID: 4824 RVA: 0x0002B710 File Offset: 0x00029910
	[Token(Token = "0x60012D8")]
	[Address(RVA = "0x3F39F0", Offset = "0x3F27F0", VA = "0x1803F39F0")]
	public void PlayPSDamage03Ready()
	{
		this.PS_DamageReady03.Play(true);
		this.g_SEDamage.PlayRandom(1f, 1f);
	}

	// Token: 0x060012D9 RID: 4825 RVA: 0x0002B744 File Offset: 0x00029944
	[Token(Token = "0x60012D9")]
	[Address(RVA = "0x3F3DA0", Offset = "0x3F2BA0", VA = "0x1803F3DA0")]
	public void SetDamage03()
	{
		GameObject gameObject = this.Original03.gameObject;
		int num = 0;
		gameObject.SetActive(num != 0);
		this.Damage03.SetDamage();
		this.PS_Damage03.Play(true);
		this.PS_DamageReady03.Stop(true);
		PlayerCamera cameraController = Game.GetCameraController();
		int num2 = 0;
		ulong num3;
		cameraController.SetRandomShake(0.9f, 6f, 1.5f, (float)num2, num3 != 0UL);
	}

	// Token: 0x060012DA RID: 4826 RVA: 0x0002B7B4 File Offset: 0x000299B4
	[Token(Token = "0x60012DA")]
	[Address(RVA = "0x3F3A40", Offset = "0x3F2840", VA = "0x1803F3A40")]
	public void PlayPSDamage04Ready()
	{
		this.PS_DamageReady04.Play(true);
		this.g_SEDamage.PlayRandom(1f, 1f);
	}

	// Token: 0x060012DB RID: 4827 RVA: 0x0002B7E8 File Offset: 0x000299E8
	[Token(Token = "0x60012DB")]
	[Address(RVA = "0x3F3EA0", Offset = "0x3F2CA0", VA = "0x1803F3EA0")]
	public void SetDamage04()
	{
		GameObject gameObject = this.Original04.gameObject;
		int num = 0;
		gameObject.SetActive(num != 0);
		this.Damage04.SetDamage();
		this.PS_Damage04.Play(true);
		this.PS_DamageReady04.Stop(true);
		PlayerCamera cameraController = Game.GetCameraController();
		int num2 = 0;
		ulong num3;
		cameraController.SetRandomShake(0.9f, 6f, 1.5f, (float)num2, num3 != 0UL);
	}

	// Token: 0x060012DC RID: 4828 RVA: 0x0002B858 File Offset: 0x00029A58
	[Token(Token = "0x60012DC")]
	[Address(RVA = "0x3F3FA0", Offset = "0x3F2DA0", VA = "0x1803F3FA0")]
	public void SetDamage05()
	{
		GameObject gameObject = this.Original05.gameObject;
		int num = 0;
		gameObject.SetActive(num != 0);
		this.Damage05.SetDamage();
		this.PS_Damage05.Play(true);
		PlayerCamera cameraController = Game.GetCameraController();
		int num2 = 0;
		ulong num3;
		cameraController.SetRandomShake(0.3f, 6f, 1.5f, (float)num2, num3 != 0UL);
	}

	// Token: 0x060012DD RID: 4829 RVA: 0x0002B8BC File Offset: 0x00029ABC
	[Token(Token = "0x60012DD")]
	[Address(RVA = "0x3F3780", Offset = "0x3F2580", VA = "0x1803F3780")]
	public void CloseLight()
	{
		this.DamageLG.ReleaseEvent();
		this.PS_Light.Stop(true);
	}

	// Token: 0x060012DE RID: 4830 RVA: 0x0002B8E8 File Offset: 0x00029AE8
	[Token(Token = "0x60012DE")]
	[Address(RVA = "0x3F3730", Offset = "0x3F2530", VA = "0x1803F3730")]
	public void CloseLight02()
	{
		this.DamageLG02.ReleaseEvent();
		this.PS_Light02.Stop(true);
	}

	// Token: 0x060012DF RID: 4831 RVA: 0x0002B914 File Offset: 0x00029B14
	[Token(Token = "0x60012DF")]
	[Address(RVA = "0x3F40D0", Offset = "0x3F2ED0", VA = "0x1803F40D0")]
	public void Skip()
	{
		this.PS_RockFall.Stop(true);
		this.PS_DamageReady01.Stop(true);
		this.PS_DamageReady02.Stop(true);
		this.PS_DamageReady03.Stop(true);
		this.PS_DamageReady04.Stop(true);
		GameObject original = this.Original01;
		int num = 0;
		original.SetActive(num != 0);
		GameObject original2 = this.Original02;
		int num2 = 0;
		original2.SetActive(num2 != 0);
		GameObject original3 = this.Original03;
		int num3 = 0;
		original3.SetActive(num3 != 0);
		GameObject original4 = this.Original04;
		int num4 = 0;
		original4.SetActive(num4 != 0);
		GameObject original5 = this.Original05;
		int num5 = 0;
		original5.SetActive(num5 != 0);
		GameObject gameObject = this.Damage01.gameObject;
		int num6 = 0;
		gameObject.SetActive(num6 != 0);
		GameObject gameObject2 = this.Damage02.gameObject;
		int num7 = 0;
		gameObject2.SetActive(num7 != 0);
		GameObject gameObject3 = this.Damage03.gameObject;
		int num8 = 0;
		gameObject3.SetActive(num8 != 0);
		GameObject gameObject4 = this.Damage04.gameObject;
		int num9 = 0;
		gameObject4.SetActive(num9 != 0);
		GameObject gameObject5 = this.Damage05.gameObject;
		int num10 = 0;
		gameObject5.SetActive(num10 != 0);
	}

	// Token: 0x060012E0 RID: 4832 RVA: 0x0002BA3C File Offset: 0x00029C3C
	[Token(Token = "0x60012E0")]
	[Address(RVA = "0x3F3A90", Offset = "0x3F2890", VA = "0x1803F3A90")]
	public void PlayPSFallRock()
	{
		this.PS_FallRock.Play(true);
	}

	// Token: 0x060012E1 RID: 4833 RVA: 0x0002BA5C File Offset: 0x00029C5C
	[Token(Token = "0x60012E1")]
	[Address(RVA = "0x3F4090", Offset = "0x3F2E90", VA = "0x1803F4090")]
	public void Skin02()
	{
		this.PS_RockFall.Stop(true);
		GameObject original = this.Original06;
		int num = 0;
		original.SetActive(num != 0);
	}

	// Token: 0x060012E2 RID: 4834 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60012E2")]
	[Address(RVA = "0x3F3B20", Offset = "0x3F2920", VA = "0x1803F3B20")]
	public void PlaySEPRockFallCollision(Vector3 Pos)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060012E3 RID: 4835 RVA: 0x0002BA8C File Offset: 0x00029C8C
	[Token(Token = "0x60012E3")]
	[Address(RVA = "0x3F3AF0", Offset = "0x3F28F0", VA = "0x1803F3AF0")]
	public void PlaySEHitPlayer()
	{
		this.g_SEHitPlayer.PlayRandom(1f, 1f);
	}

	// Token: 0x060012E4 RID: 4836 RVA: 0x0002BAB4 File Offset: 0x00029CB4
	[Token(Token = "0x60012E4")]
	[Address(RVA = "0x3F4650", Offset = "0x3F3450", VA = "0x1803F4650")]
	public Level04Room08()
	{
	}

	// Token: 0x04001D47 RID: 7495
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4001D47")]
	public Animator Ani;

	// Token: 0x04001D48 RID: 7496
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4001D48")]
	private Shake g_ShakeOriginal01;

	// Token: 0x04001D49 RID: 7497
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4001D49")]
	private Shake g_ShakeOriginal02;

	// Token: 0x04001D4A RID: 7498
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4001D4A")]
	public GameObject Original01;

	// Token: 0x04001D4B RID: 7499
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4001D4B")]
	public GameObject Original02;

	// Token: 0x04001D4C RID: 7500
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4001D4C")]
	public GameObject Original03;

	// Token: 0x04001D4D RID: 7501
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4001D4D")]
	public GameObject Original04;

	// Token: 0x04001D4E RID: 7502
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4001D4E")]
	public GameObject Original05;

	// Token: 0x04001D4F RID: 7503
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4001D4F")]
	public GameObject Original06;

	// Token: 0x04001D50 RID: 7504
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x4001D50")]
	public DamagedObjectFloor_BossBig03 Damage01;

	// Token: 0x04001D51 RID: 7505
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4001D51")]
	public DamagedObjectFloor_BossBig03 Damage02;

	// Token: 0x04001D52 RID: 7506
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4001D52")]
	public DamagedObjectFloor_BossBig03 Damage03;

	// Token: 0x04001D53 RID: 7507
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4001D53")]
	public DamagedObjectFloor_BossBig03 Damage04;

	// Token: 0x04001D54 RID: 7508
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4001D54")]
	public DamagedObjectFloor_BossBig03 Damage05;

	// Token: 0x04001D55 RID: 7509
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x4001D55")]
	public ParticleSystem PS_RockFall;

	// Token: 0x04001D56 RID: 7510
	[FieldOffset(Offset = "0x90")]
	[Token(Token = "0x4001D56")]
	public ParticleSystem PS_BlockCat;

	// Token: 0x04001D57 RID: 7511
	[FieldOffset(Offset = "0x98")]
	[Token(Token = "0x4001D57")]
	public ParticleSystem PS_DamageReady01;

	// Token: 0x04001D58 RID: 7512
	[FieldOffset(Offset = "0xA0")]
	[Token(Token = "0x4001D58")]
	public ParticleSystem PS_DamageReady02;

	// Token: 0x04001D59 RID: 7513
	[FieldOffset(Offset = "0xA8")]
	[Token(Token = "0x4001D59")]
	public ParticleSystem PS_DamageReady03;

	// Token: 0x04001D5A RID: 7514
	[FieldOffset(Offset = "0xB0")]
	[Token(Token = "0x4001D5A")]
	public ParticleSystem PS_DamageReady04;

	// Token: 0x04001D5B RID: 7515
	[FieldOffset(Offset = "0xB8")]
	[Token(Token = "0x4001D5B")]
	public ParticleSystem PS_Damage01;

	// Token: 0x04001D5C RID: 7516
	[FieldOffset(Offset = "0xC0")]
	[Token(Token = "0x4001D5C")]
	public ParticleSystem PS_Damage02;

	// Token: 0x04001D5D RID: 7517
	[FieldOffset(Offset = "0xC8")]
	[Token(Token = "0x4001D5D")]
	public ParticleSystem PS_Damage03;

	// Token: 0x04001D5E RID: 7518
	[FieldOffset(Offset = "0xD0")]
	[Token(Token = "0x4001D5E")]
	public ParticleSystem PS_Damage04;

	// Token: 0x04001D5F RID: 7519
	[FieldOffset(Offset = "0xD8")]
	[Token(Token = "0x4001D5F")]
	public ParticleSystem PS_Damage05;

	// Token: 0x04001D60 RID: 7520
	[FieldOffset(Offset = "0xE0")]
	[Token(Token = "0x4001D60")]
	public LightController DamageLG;

	// Token: 0x04001D61 RID: 7521
	[FieldOffset(Offset = "0xE8")]
	[Token(Token = "0x4001D61")]
	public LightController DamageLG02;

	// Token: 0x04001D62 RID: 7522
	[FieldOffset(Offset = "0xF0")]
	[Token(Token = "0x4001D62")]
	public ParticleSystem PS_Light;

	// Token: 0x04001D63 RID: 7523
	[FieldOffset(Offset = "0xF8")]
	[Token(Token = "0x4001D63")]
	public ParticleSystem PS_Light02;

	// Token: 0x04001D64 RID: 7524
	[FieldOffset(Offset = "0x100")]
	[Token(Token = "0x4001D64")]
	public ParticleSystem PS_FallRock;

	// Token: 0x04001D65 RID: 7525
	[FieldOffset(Offset = "0x108")]
	[Token(Token = "0x4001D65")]
	public GameObject SE_RockFallCollision;

	// Token: 0x04001D66 RID: 7526
	[FieldOffset(Offset = "0x110")]
	[Token(Token = "0x4001D66")]
	public GameObject SE_Damage;

	// Token: 0x04001D67 RID: 7527
	[FieldOffset(Offset = "0x118")]
	[Token(Token = "0x4001D67")]
	public GameObject SE_HitPlayer;

	// Token: 0x04001D68 RID: 7528
	[FieldOffset(Offset = "0x120")]
	[Token(Token = "0x4001D68")]
	private SoundEffect g_SEDamage;

	// Token: 0x04001D69 RID: 7529
	[FieldOffset(Offset = "0x128")]
	[Token(Token = "0x4001D69")]
	private SoundEffect g_SEHitPlayer;

	// Token: 0x04001D6A RID: 7530
	[FieldOffset(Offset = "0x130")]
	[Token(Token = "0x4001D6A")]
	private SoundEffectPool g_SERockFallCollision;

	// Token: 0x04001D6B RID: 7531
	[FieldOffset(Offset = "0x138")]
	[Token(Token = "0x4001D6B")]
	private float g_fTimeScale = 1f;
}
