2020-03-02 02:26:06 +01:00
using System ;
using UnityEngine ;
namespace UnityAtoms.BaseAtoms
{
/// <summary>
/// Variable of type `GameObject`. Inherits from `AtomVariable<GameObject, GameObjectPair, GameObjectEvent, GameObjectPairEvent, GameObjectGameObjectFunction>`.
/// </summary>
[EditorIcon("atom-icon-lush")]
[CreateAssetMenu(menuName = "Unity Atoms/Variables/GameObject", fileName = "GameObjectVariable")]
public sealed class GameObjectVariable : AtomVariable < GameObject , GameObjectPair , GameObjectEvent , GameObjectPairEvent , GameObjectGameObjectFunction >
{
protected override bool ValueEquals ( GameObject other )
{
2020-03-05 00:56:56 +01:00
return ( _value = = null & & other = = null ) | | _value ! = null & & other ! = null & & _value . GetInstanceID ( ) = = other . GetInstanceID ( ) ;
2020-03-02 02:26:06 +01:00
}
}
}