2020-03-02 02:26:06 +01:00
using System ;
using UnityEngine ;
namespace UnityAtoms.BaseAtoms
{
/// <summary>
/// Variable of type `Collider`. Inherits from `AtomVariable<Collider, ColliderPair, ColliderEvent, ColliderPairEvent, ColliderColliderFunction>`.
/// </summary>
[EditorIcon("atom-icon-lush")]
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Collider", fileName = "ColliderVariable")]
public sealed class ColliderVariable : AtomVariable < Collider , ColliderPair , ColliderEvent , ColliderPairEvent , ColliderColliderFunction >
{
protected override bool ValueEquals ( Collider other )
{
2020-03-05 00:56:56 +01:00
return ( _value = = null & & other = = null ) | | _value ! = null & & other ! = null & & _value = = other ;
2020-03-02 02:26:06 +01:00
}
}
}