using System;
using UnityEngine;
namespace UnityAtoms
{
///
/// Variable of type `Collider`. Inherits from `AtomVariable<Collider, ColliderEvent, ColliderColliderEvent>`.
///
[EditorIcon("atom-icon-lush")]
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Collider", fileName = "ColliderVariable")]
public sealed class ColliderVariable : AtomVariable
{
protected override bool AreEqual(Collider first, Collider second)
{
return (first == null && second == null) || first != null && second != null && first == second;
}
}
}