unity-atoms/Source/Variables/GameObjectVariable.cs
2019-05-29 18:56:26 +02:00

17 lines
548 B
C#

using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "Unity Atoms/Variables/GameObject", fileName = "GameObjectVariable")]
public sealed 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();
}
}
}