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