mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
7763f81ede
* Unified all line endings in project to align with .editorconfig; all end-of-line characters have been set to LF and new-lines placed at the end of every file if not present.
14 lines
560 B
C#
14 lines
560 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();
|
|
}
|
|
}
|
|
}
|