mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 16:48:23 -05:00
13 lines
559 B
C#
13 lines
559 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace UnityAtoms
|
||
|
{
|
||
|
[CreateAssetMenu(menuName = "Unity Atoms/GameObject/Variable", fileName = "GameObjectVariable", order = CreateAssetMenuUtils.Order.VARIABLE)]
|
||
|
public class GameObjectVariable : ScriptableObjectVariable<GameObject, GameObjectEvent, GameObjectGameObjectEvent>
|
||
|
{
|
||
|
protected override bool AreEqual(GameObject first, GameObject second)
|
||
|
{
|
||
|
return (first == null && second == null) || first != null && second != null && first.GetInstanceID() == second.GetInstanceID();
|
||
|
}
|
||
|
}
|
||
|
}
|