using System;
using Cpp2IlInjected;
using UnityEngine;

// Token: 0x0200000A RID: 10
[Token(Token = "0x200000A")]
[RequireComponent(typeof(BoxCollider2D))]
[AddComponentMenu("Image Effects/Amplify Color Volume 2D")]
public class AmplifyColorVolume2D : AmplifyColorVolumeBase
{
	// Token: 0x0600003B RID: 59 RVA: 0x00002A58 File Offset: 0x00000C58
	[Token(Token = "0x600003B")]
	[Address(RVA = "0x8C8E20", Offset = "0x8C7C20", VA = "0x1808C8E20")]
	private void OnTriggerEnter2D(Collider2D other)
	{
		AmplifyColorTriggerProxy2D component = other.GetComponent<AmplifyColorTriggerProxy2D>();
		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: 0x0600003C RID: 60 RVA: 0x00002ABC File Offset: 0x00000CBC
	[Token(Token = "0x600003C")]
	[Address(RVA = "0x8C8F20", Offset = "0x8C7D20", VA = "0x1808C8F20")]
	private void OnTriggerExit2D(Collider2D other)
	{
		AmplifyColorTriggerProxy2D component = other.GetComponent<AmplifyColorTriggerProxy2D>();
		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: 0x0600003D RID: 61 RVA: 0x00002B20 File Offset: 0x00000D20
	[Token(Token = "0x600003D")]
	[Address(RVA = "0x8C9020", Offset = "0x8C7E20", VA = "0x1808C9020")]
	public AmplifyColorVolume2D()
	{
	}
}
