mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 08:38:23 -05:00
16 lines
507 B
C#
16 lines
507 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace UnityAtoms
|
|
{
|
|
[UseIcon("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;
|
|
}
|
|
}
|
|
}
|