using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x020001DC RID: 476
[Token(Token = "0x20001DC")]
public class LightController : SceneEvent
{
	// Token: 0x06001486 RID: 5254 RVA: 0x0002F13C File Offset: 0x0002D33C
	[Token(Token = "0x6001486")]
	[Address(RVA = "0x416E10", Offset = "0x415E10", VA = "0x180416E10", 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: 0x06001487 RID: 5255 RVA: 0x000020D3 File Offset: 0x000002D3
	[Token(Token = "0x6001487")]
	[Address(RVA = "0x416F00", Offset = "0x415F00", VA = "0x180416F00")]
	protected void Update()
	{
		throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
	}

	// Token: 0x06001488 RID: 5256 RVA: 0x0002F188 File Offset: 0x0002D388
	[Token(Token = "0x6001488")]
	[Address(RVA = "0x416E60", Offset = "0x415E60", VA = "0x180416E60", 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: 0x06001489 RID: 5257 RVA: 0x0002F1D4 File Offset: 0x0002D3D4
	[Token(Token = "0x6001489")]
	[Address(RVA = "0x416EF0", Offset = "0x415EF0", VA = "0x180416EF0", Slot = "8")]
	public override void ReleaseEvent()
	{
		this.DefaultEnable = false;
	}

	// Token: 0x0600148A RID: 5258 RVA: 0x0002F1E8 File Offset: 0x0002D3E8
	[Token(Token = "0x600148A")]
	[Address(RVA = "0x4171A0", Offset = "0x4161A0", VA = "0x1804171A0")]
	public LightController()
	{
	}

	// Token: 0x04001F35 RID: 7989
	[FieldOffset(Offset = "0x38")]
	[Token(Token = "0x4001F35")]
	public Light[] LC;

	// Token: 0x04001F36 RID: 7990
	[FieldOffset(Offset = "0x40")]
	[Token(Token = "0x4001F36")]
	public bool DefaultEnable = true;

	// Token: 0x04001F37 RID: 7991
	[FieldOffset(Offset = "0x44")]
	[Token(Token = "0x4001F37")]
	public float DefaultIntensity = 1f;

	// Token: 0x04001F38 RID: 7992
	[FieldOffset(Offset = "0x48")]
	[Token(Token = "0x4001F38")]
	public float RandomIntensity = 1f;

	// Token: 0x04001F39 RID: 7993
	[FieldOffset(Offset = "0x4C")]
	[Token(Token = "0x4001F39")]
	public float Speed = 5f;

	// Token: 0x04001F3A RID: 7994
	[FieldOffset(Offset = "0x50")]
	[Token(Token = "0x4001F3A")]
	private float g_fIntensity;

	// Token: 0x04001F3B RID: 7995
	[FieldOffset(Offset = "0x54")]
	[Token(Token = "0x4001F3B")]
	private float g_fRandomIntensity;
}
