unity-atoms/Packages/Core/Runtime/Variables/ColliderVariable.cs
2019-10-14 16:51:54 +02:00

16 lines
510 B
C#

using System;
using UnityEngine;
namespace UnityAtoms
{
[EditorIcon("atom-icon-lush")]
[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;
}
}
}