unity-atoms/Packages/Core/Runtime/Variables/ColliderVariable.cs

15 lines
475 B
C#
Raw Normal View History

using System;
using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Collider", fileName = "ColliderVariable")]
public sealed class ColliderVariable : AtomVariable<Collider, ColliderEvent, ColliderColliderEvent>
{
protected override bool AreEqual(Collider first, Collider second)
{
return (first == null && second == null) || first != null && second != null && first == second;
}
}
}