using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x02000009 RID: 9
[Token(Token = "0x2000009")]
[RequireComponent(typeof(BoxCollider))]
[AddComponentMenu("Image Effects/Amplify Color Volume")]
public class AmplifyColorVolume : AmplifyColorVolumeBase
{
	// Token: 0x06000038 RID: 56 RVA: 0x0000297C File Offset: 0x00000B7C
	[Token(Token = "0x6000038")]
	[Address(RVA = "0x8C95D0", Offset = "0x8C83D0", VA = "0x1808C95D0")]
	private void OnTriggerEnter(Collider other)
	{
		AmplifyColorTriggerProxy component = other.GetComponent<AmplifyColorTriggerProxy>();
		int num = 0;
		if (component != num)
		{
			AmplifyColorBase ownerEffect = component.OwnerEffect;
			if (ownerEffect.UseVolumes)
			{
				int num2 = ownerEffect.VolumeCollisionMask;
				GameObject gameObject = base.gameObject;
				int layer = gameObject.layer;
				if (gameObject < 0)
				{
					component.OwnerEffect.EnterVolume(this);
				}
			}
		}
	}

	// Token: 0x06000039 RID: 57 RVA: 0x000029E0 File Offset: 0x00000BE0
	[Token(Token = "0x6000039")]
	[Address(RVA = "0x8C96D0", Offset = "0x8C84D0", VA = "0x1808C96D0")]
	private void OnTriggerExit(Collider other)
	{
		AmplifyColorTriggerProxy component = other.GetComponent<AmplifyColorTriggerProxy>();
		int num = 0;
		if (component != num)
		{
			AmplifyColorBase ownerEffect = component.OwnerEffect;
			if (ownerEffect.UseVolumes)
			{
				int num2 = ownerEffect.VolumeCollisionMask;
				GameObject gameObject = base.gameObject;
				int layer = gameObject.layer;
				if (gameObject < 0)
				{
					component.OwnerEffect.ExitVolume(this);
				}
			}
		}
	}

	// Token: 0x0600003A RID: 58 RVA: 0x00002A44 File Offset: 0x00000C44
	[Token(Token = "0x600003A")]
	[Address(RVA = "0x8C9020", Offset = "0x8C7E20", VA = "0x1808C9020")]
	public AmplifyColorVolume()
	{
	}
}
