2019-09-29 18:02:54 -04:00
using System ;
using UnityEngine ;
namespace UnityAtoms
{
2019-10-15 16:27:22 -04:00
/// <summary>
2020-02-16 06:44:46 -05:00
/// Variable of type `Collider2D`. Inherits from `AtomVariable<Collider2D, Collider2DEvent, Collider2DCollider2DEvent, Collider2DCollider2DFunction>`.
2019-10-15 16:27:22 -04:00
/// </summary>
2019-10-14 10:51:54 -04:00
[EditorIcon("atom-icon-lush")]
2019-09-29 18:02:54 -04:00
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Collider2D", fileName = "Collider2DVariable")]
2020-02-16 06:44:46 -05:00
public sealed class Collider2DVariable : AtomVariable < Collider2D , Collider2DEvent , Collider2DCollider2DEvent , Collider2DCollider2DFunction >
2019-09-29 18:02:54 -04:00
{
protected override bool AreEqual ( Collider2D first , Collider2D second )
{
return ( first = = null & & second = = null ) | | first ! = null & & second ! = null & & first = = second ;
}
}
}