12345678910111213141516171819202122 |
- using System.Collections.Generic;
- namespace UnityEngine.TestTools.Utils
- {
- public class Vector2ComparerWithEqualsOperator : IEqualityComparer<Vector2>
- {
- private static readonly Vector2ComparerWithEqualsOperator m_Instance = new Vector2ComparerWithEqualsOperator();
- public static Vector2ComparerWithEqualsOperator Instance { get { return m_Instance; } }
- private Vector2ComparerWithEqualsOperator() {}
- public bool Equals(Vector2 expected, Vector2 actual)
- {
- return expected == actual;
- }
- public int GetHashCode(Vector2 vec2)
- {
- return 0;
- }
- }
- }
|