using System; using UnityEngine; namespace UnityAtoms { /// /// Reference of type `Collider`. Inherits from `AtomReference<Collider, ColliderConstant, ColliderVariable, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction, ColliderVariableInstancer>`. /// [Serializable] public sealed class ColliderReference : AtomReference< Collider, ColliderConstant, ColliderVariable, ColliderEvent, ColliderColliderEvent, ColliderColliderFunction, ColliderVariableInstancer> { protected override bool ValueEquals(Collider other) { return (this.Value == null && other == null) || this.Value != null && other != null && this.Value == other; } } }