2024-03-05 17:34:41 +08:00
|
|
|
#if GRIFFIN
|
2023-12-30 17:37:48 +08:00
|
|
|
using UnityEngine;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace Pinwheel.Griffin
|
|
|
|
{
|
|
|
|
public class GObjectComparer<T> : IEqualityComparer<T> where T : Object
|
|
|
|
{
|
|
|
|
public bool Equals(T x, T y)
|
|
|
|
{
|
|
|
|
return x.GetInstanceID() == y.GetInstanceID();
|
|
|
|
}
|
|
|
|
|
|
|
|
public int GetHashCode(T obj)
|
|
|
|
{
|
|
|
|
return obj.GetHashCode();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-05 17:34:41 +08:00
|
|
|
#endif
|