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