using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020001A5 RID: 421
[Token(Token = "0x20001A5")]
public class LightController : SceneEvent
{
	// Token: 0x060012E7 RID: 4839 RVA: 0x0002BAE8 File Offset: 0x00029CE8
	[Token(Token = "0x60012E7")]
	[Address(RVA = "0x3F4670", Offset = "0x3F3470", VA = "0x1803F4670", Slot = "4")]
	public override void InitData(SceneEventManager SEM)
	{
		base.InitData(SEM);
		if (!this.DefaultEnable)
		{
			int num = 0;
			this.g_fIntensity = (float)num;
			this.g_fRandomIntensity = 0f;
			return;
		}
		float defaultIntensity = this.DefaultIntensity;
		this.g_fIntensity = defaultIntensity;
		this.g_fRandomIntensity = 0f;
	}

	// Token: 0x060012E8 RID: 4840 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x60012E8")]
	[Address(RVA = "0x3F4760", Offset = "0x3F3560", VA = "0x1803F4760")]
	protected void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x060012E9 RID: 4841 RVA: 0x0002BB34 File Offset: 0x00029D34
	[Token(Token = "0x60012E9")]
	[Address(RVA = "0x3F46C0", Offset = "0x3F34C0", VA = "0x1803F46C0", Slot = "5")]
	public override void OpenEvent()
	{
		Light[] lc = this.LC;
		int num = 0;
		this.DefaultEnable = true;
		if (num < lc.Length)
		{
			lc[num].gameObject.SetActive(true);
			Light[] lc2 = this.LC;
			num++;
		}
	}

	// Token: 0x060012EA RID: 4842 RVA: 0x0002BB80 File Offset: 0x00029D80
	[Token(Token = "0x60012EA")]
	[Address(RVA = "0x3F4750", Offset = "0x3F3550", VA = "0x1803F4750", Slot = "8")]
	public override void ReleaseEvent()
	{
		this.DefaultEnable = false;
	}

	// Token: 0x060012EB RID: 4843 RVA: 0x0002BB94 File Offset: 0x00029D94
	[Token(Token = "0x60012EB")]
	[Address(RVA = "0x3F4A00", Offset = "0x3F3800", VA = "0x1803F4A00")]
	public LightController()
	{
	}

	// Token: 0x04001D6D RID: 7533
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4001D6D")]
	public Light[] LC;

	// Token: 0x04001D6E RID: 7534
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4001D6E")]
	public bool DefaultEnable = true;

	// Token: 0x04001D6F RID: 7535
	[FieldOffset(Offset = "0x44")]
	[Token(Token = "0x4001D6F")]
	public float DefaultIntensity = 1f;

	// Token: 0x04001D70 RID: 7536
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4001D70")]
	public float RandomIntensity = 1f;

	// Token: 0x04001D71 RID: 7537
	[FieldOffset(Offset = "0x4C")]
	[Token(Token = "0x4001D71")]
	public float Speed = 5f;

	// Token: 0x04001D72 RID: 7538
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4001D72")]
	private float g_fIntensity;

	// Token: 0x04001D73 RID: 7539
	[FieldOffset(Offset = "0x54")]
	[Token(Token = "0x4001D73")]
	private float g_fRandomIntensity;
}
