using System;
using UnityEngine;
namespace UnityAtoms
{
///
/// Variable of type `GameObject`. Inherits from `AtomVariable<GameObject, GameObjectEvent, GameObjectGameObjectEvent, GameObjectGameObjectFunction>`.
///
[EditorIcon("atom-icon-lush")]
[CreateAssetMenu(menuName = "Unity Atoms/Variables/GameObject", fileName = "GameObjectVariable")]
public sealed class GameObjectVariable : AtomVariable
{
protected override bool ValueEquals(GameObject other)
{
return (_value == null && other == null) || _value != null && other != null && _value.GetInstanceID() == other.GetInstanceID();
}
}
}