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 = "0xDAD6C0", Offset = "0xDAC6C0", VA = "0x180DAD6C0")]
	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 = "0xDAD7C0", Offset = "0xDAC7C0", VA = "0x180DAD7C0")]
	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 = "0xDAD8C0", Offset = "0xDAC8C0", VA = "0x180DAD8C0")]
	public AmplifyColorVolume2D()
	{
	}
}
