mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 16:48:23 -05:00
15 lines
475 B
C#
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;
|
||
|
}
|
||
|
}
|
||
|
}
|