Files

22 lines
431 B
C#
Raw Normal View History

2024-05-13 01:28:33 +08:00
#if GRIFFIN
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();
}
}
}
#endif