using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020001DA RID: 474
[Token(Token = "0x20001DA")]
public class Level04Room08 : MonoBehaviour
{
	// Token: 0x0600146E RID: 5230 RVA: 0x0002E9A4 File Offset: 0x0002CBA4
	[Token(Token = "0x600146E")]
	[Address(RVA = "0x416A40", Offset = "0x415A40", VA = "0x180416A40")]
	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: 0x0600146F RID: 5231 RVA: 0x0002EAC4 File Offset: 0x0002CCC4
	[Token(Token = "0x600146F")]
	[Address(RVA = "0x416CD0", Offset = "0x415CD0", VA = "0x180416CD0")]
	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: 0x06001470 RID: 5232 RVA: 0x0002EB7C File Offset: 0x0002CD7C
	[Token(Token = "0x6001470")]
	[Address(RVA = "0x416260", Offset = "0x415260", VA = "0x180416260")]
	public void PlayPSRockFall()
	{
		this.PS_RockFall.Play(true);
	}

	// Token: 0x06001471 RID: 5233 RVA: 0x0002EB9C File Offset: 0x0002CD9C
	[Token(Token = "0x6001471")]
	[Address(RVA = "0x416CA0", Offset = "0x415CA0", VA = "0x180416CA0")]
	public void StopPSRockFall()
	{
		this.PS_RockFall.Stop(true);
	}

	// Token: 0x06001472 RID: 5234 RVA: 0x0002EBBC File Offset: 0x0002CDBC
	[Token(Token = "0x6001472")]
	[Address(RVA = "0x416040", Offset = "0x415040", VA = "0x180416040")]
	public void PlayPSBlockCat()
	{
		this.PS_BlockCat.Play(true);
	}

	// Token: 0x06001473 RID: 5235 RVA: 0x0002EBDC File Offset: 0x0002CDDC
	[Token(Token = "0x6001473")]
	[Address(RVA = "0x416070", Offset = "0x415070", VA = "0x180416070")]
	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: 0x06001474 RID: 5236 RVA: 0x0002EC30 File Offset: 0x0002CE30
	[Token(Token = "0x6001474")]
	[Address(RVA = "0x416340", Offset = "0x415340", VA = "0x180416340")]
	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: 0x06001475 RID: 5237 RVA: 0x0002ECA0 File Offset: 0x0002CEA0
	[Token(Token = "0x6001475")]
	[Address(RVA = "0x416100", Offset = "0x415100", VA = "0x180416100")]
	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: 0x06001476 RID: 5238 RVA: 0x0002ECF4 File Offset: 0x0002CEF4
	[Token(Token = "0x6001476")]
	[Address(RVA = "0x416440", Offset = "0x415440", VA = "0x180416440")]
	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: 0x06001477 RID: 5239 RVA: 0x0002ED64 File Offset: 0x0002CF64
	[Token(Token = "0x6001477")]
	[Address(RVA = "0x416190", Offset = "0x415190", VA = "0x180416190")]
	public void PlayPSDamage03Ready()
	{
		this.PS_DamageReady03.Play(true);
		this.g_SEDamage.PlayRandom(1f, 1f);
	}

	// Token: 0x06001478 RID: 5240 RVA: 0x0002ED98 File Offset: 0x0002CF98
	[Token(Token = "0x6001478")]
	[Address(RVA = "0x416540", Offset = "0x415540", VA = "0x180416540")]
	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: 0x06001479 RID: 5241 RVA: 0x0002EE08 File Offset: 0x0002D008
	[Token(Token = "0x6001479")]
	[Address(RVA = "0x4161E0", Offset = "0x4151E0", VA = "0x1804161E0")]
	public void PlayPSDamage04Ready()
	{
		this.PS_DamageReady04.Play(true);
		this.g_SEDamage.PlayRandom(1f, 1f);
	}

	// Token: 0x0600147A RID: 5242 RVA: 0x0002EE3C File Offset: 0x0002D03C
	[Token(Token = "0x600147A")]
	[Address(RVA = "0x416640", Offset = "0x415640", VA = "0x180416640")]
	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: 0x0600147B RID: 5243 RVA: 0x0002EEAC File Offset: 0x0002D0AC
	[Token(Token = "0x600147B")]
	[Address(RVA = "0x416740", Offset = "0x415740", VA = "0x180416740")]
	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: 0x0600147C RID: 5244 RVA: 0x0002EF10 File Offset: 0x0002D110
	[Token(Token = "0x600147C")]
	[Address(RVA = "0x415F20", Offset = "0x414F20", VA = "0x180415F20")]
	public void CloseLight()
	{
		this.DamageLG.ReleaseEvent();
		this.PS_Light.Stop(true);
	}

	// Token: 0x0600147D RID: 5245 RVA: 0x0002EF3C File Offset: 0x0002D13C
	[Token(Token = "0x600147D")]
	[Address(RVA = "0x415ED0", Offset = "0x414ED0", VA = "0x180415ED0")]
	public void CloseLight02()
	{
		this.DamageLG02.ReleaseEvent();
		this.PS_Light02.Stop(true);
	}

	// Token: 0x0600147E RID: 5246 RVA: 0x0002EF68 File Offset: 0x0002D168
	[Token(Token = "0x600147E")]
	[Address(RVA = "0x416870", Offset = "0x415870", VA = "0x180416870")]
	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: 0x0600147F RID: 5247 RVA: 0x0002F090 File Offset: 0x0002D290
	[Token(Token = "0x600147F")]
	[Address(RVA = "0x416230", Offset = "0x415230", VA = "0x180416230")]
	public void PlayPSFallRock()
	{
		this.PS_FallRock.Play(true);
	}

	// Token: 0x06001480 RID: 5248 RVA: 0x0002F0B0 File Offset: 0x0002D2B0
	[Token(Token = "0x6001480")]
	[Address(RVA = "0x416830", Offset = "0x415830", VA = "0x180416830")]
	public void Skin02()
	{
		this.PS_RockFall.Stop(true);
		GameObject original = this.Original06;
		int num = 0;
		original.SetActive(num != 0);
	}

	// Token: 0x06001481 RID: 5249 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001481")]
	[Address(RVA = "0x4162C0", Offset = "0x4152C0", VA = "0x1804162C0")]
	public void PlaySEPRockFallCollision(Vector3 Pos)
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001482 RID: 5250 RVA: 0x0002F0E0 File Offset: 0x0002D2E0
	[Token(Token = "0x6001482")]
	[Address(RVA = "0x416290", Offset = "0x415290", VA = "0x180416290")]
	public void PlaySEHitPlayer()
	{
		this.g_SEHitPlayer.PlayRandom(1f, 1f);
	}

	// Token: 0x06001483 RID: 5251 RVA: 0x0002F108 File Offset: 0x0002D308
	[Token(Token = "0x6001483")]
	[Address(RVA = "0x416DF0", Offset = "0x415DF0", VA = "0x180416DF0")]
	public Level04Room08()
	{
	}

	// Token: 0x04001F0F RID: 7951
	[FieldOffset(Offset = "0x18")]
	[Token(Token = "0x4001F0F")]
	public Animator Ani;

	// Token: 0x04001F10 RID: 7952
	[FieldOffset(Offset = "0x20")]
	[Token(Token = "0x4001F10")]
	private Shake g_ShakeOriginal01;

	// Token: 0x04001F11 RID: 7953
	[FieldOffset(Offset = "0x28")]
	[Token(Token = "0x4001F11")]
	private Shake g_ShakeOriginal02;

	// Token: 0x04001F12 RID: 7954
	[FieldOffset(Offset = "0x30")]
	[Token(Token = "0x4001F12")]
	public GameObject Original01;

	// Token: 0x04001F13 RID: 7955
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4001F13")]
	public GameObject Original02;

	// Token: 0x04001F14 RID: 7956
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4001F14")]
	public GameObject Original03;

	// Token: 0x04001F15 RID: 7957
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4001F15")]
	public GameObject Original04;

	// Token: 0x04001F16 RID: 7958
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4001F16")]
	public GameObject Original05;

	// Token: 0x04001F17 RID: 7959
	[FieldOffset(Offset = "0x58")]
	[Token(Token = "0x4001F17")]
	public GameObject Original06;

	// Token: 0x04001F18 RID: 7960
	[FieldOffset(Offset = "0x60")]
	[Token(Token = "0x4001F18")]
	public DamagedObjectFloor_BossBig03 Damage01;

	// Token: 0x04001F19 RID: 7961
	[FieldOffset(Offset = "0x68")]
	[Token(Token = "0x4001F19")]
	public DamagedObjectFloor_BossBig03 Damage02;

	// Token: 0x04001F1A RID: 7962
	[FieldOffset(Offset = "0x70")]
	[Token(Token = "0x4001F1A")]
	public DamagedObjectFloor_BossBig03 Damage03;

	// Token: 0x04001F1B RID: 7963
	[FieldOffset(Offset = "0x78")]
	[Token(Token = "0x4001F1B")]
	public DamagedObjectFloor_BossBig03 Damage04;

	// Token: 0x04001F1C RID: 7964
	[FieldOffset(Offset = "0x80")]
	[Token(Token = "0x4001F1C")]
	public DamagedObjectFloor_BossBig03 Damage05;

	// Token: 0x04001F1D RID: 7965
	[FieldOffset(Offset = "0x88")]
	[Token(Token = "0x4001F1D")]
	public ParticleSystem PS_RockFall;

	// Token: 0x04001F1E RID: 7966
	[FieldOffset(Offset = "0x90")]
	[Token(Token = "0x4001F1E")]
	public ParticleSystem PS_BlockCat;

	// Token: 0x04001F1F RID: 7967
	[FieldOffset(Offset = "0x98")]
	[Token(Token = "0x4001F1F")]
	public ParticleSystem PS_DamageReady01;

	// Token: 0x04001F20 RID: 7968
	[FieldOffset(Offset = "0xA0")]
	[Token(Token = "0x4001F20")]
	public ParticleSystem PS_DamageReady02;

	// Token: 0x04001F21 RID: 7969
	[FieldOffset(Offset = "0xA8")]
	[Token(Token = "0x4001F21")]
	public ParticleSystem PS_DamageReady03;

	// Token: 0x04001F22 RID: 7970
	[FieldOffset(Offset = "0xB0")]
	[Token(Token = "0x4001F22")]
	public ParticleSystem PS_DamageReady04;

	// Token: 0x04001F23 RID: 7971
	[FieldOffset(Offset = "0xB8")]
	[Token(Token = "0x4001F23")]
	public ParticleSystem PS_Damage01;

	// Token: 0x04001F24 RID: 7972
	[FieldOffset(Offset = "0xC0")]
	[Token(Token = "0x4001F24")]
	public ParticleSystem PS_Damage02;

	// Token: 0x04001F25 RID: 7973
	[FieldOffset(Offset = "0xC8")]
	[Token(Token = "0x4001F25")]
	public ParticleSystem PS_Damage03;

	// Token: 0x04001F26 RID: 7974
	[FieldOffset(Offset = "0xD0")]
	[Token(Token = "0x4001F26")]
	public ParticleSystem PS_Damage04;

	// Token: 0x04001F27 RID: 7975
	[FieldOffset(Offset = "0xD8")]
	[Token(Token = "0x4001F27")]
	public ParticleSystem PS_Damage05;

	// Token: 0x04001F28 RID: 7976
	[FieldOffset(Offset = "0xE0")]
	[Token(Token = "0x4001F28")]
	public LightController DamageLG;

	// Token: 0x04001F29 RID: 7977
	[FieldOffset(Offset = "0xE8")]
	[Token(Token = "0x4001F29")]
	public LightController DamageLG02;

	// Token: 0x04001F2A RID: 7978
	[FieldOffset(Offset = "0xF0")]
	[Token(Token = "0x4001F2A")]
	public ParticleSystem PS_Light;

	// Token: 0x04001F2B RID: 7979
	[FieldOffset(Offset = "0xF8")]
	[Token(Token = "0x4001F2B")]
	public ParticleSystem PS_Light02;

	// Token: 0x04001F2C RID: 7980
	[FieldOffset(Offset = "0x100")]
	[Token(Token = "0x4001F2C")]
	public ParticleSystem PS_FallRock;

	// Token: 0x04001F2D RID: 7981
	[FieldOffset(Offset = "0x108")]
	[Token(Token = "0x4001F2D")]
	public GameObject SE_RockFallCollision;

	// Token: 0x04001F2E RID: 7982
	[FieldOffset(Offset = "0x110")]
	[Token(Token = "0x4001F2E")]
	public GameObject SE_Damage;

	// Token: 0x04001F2F RID: 7983
	[FieldOffset(Offset = "0x118")]
	[Token(Token = "0x4001F2F")]
	public GameObject SE_HitPlayer;

	// Token: 0x04001F30 RID: 7984
	[FieldOffset(Offset = "0x120")]
	[Token(Token = "0x4001F30")]
	private SoundEffect g_SEDamage;

	// Token: 0x04001F31 RID: 7985
	[FieldOffset(Offset = "0x128")]
	[Token(Token = "0x4001F31")]
	private SoundEffect g_SEHitPlayer;

	// Token: 0x04001F32 RID: 7986
	[FieldOffset(Offset = "0x130")]
	[Token(Token = "0x4001F32")]
	private SoundEffectPool g_SERockFallCollision;

	// Token: 0x04001F33 RID: 7987
	[FieldOffset(Offset = "0x138")]
	[Token(Token = "0x4001F33")]
	private float g_fTimeScale = 1f;
}
