using System; using UnityEngine; namespace UnityAtoms.BaseAtoms { /// /// Variable of type `GameObject`. Inherits from `AtomVariable<GameObject, GameObjectPair, GameObjectEvent, GameObjectPairEvent, 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(); } } }