unity-atoms/Source/Variables/ColliderVariable.cs
2019-09-30 00:02:54 +02:00

15 lines
475 B
C#

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;
}
}
}