mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 08:38:23 -05:00
16 lines
413 B
C#
16 lines
413 B
C#
using System;
|
|
|
|
namespace UnityAtoms
|
|
{
|
|
public abstract class EquatableScriptableObjectVariable<T, E1, E2> : ScriptableObjectVariable<T, E1, E2>
|
|
where T : IEquatable<T>
|
|
where E1 : GameEvent<T>
|
|
where E2 : GameEvent<T, T>
|
|
{
|
|
protected override bool AreEqual(T t1, T t2)
|
|
{
|
|
return (t1 == null && t2 == null) || (t1 != null && t1.Equals(t2));
|
|
}
|
|
}
|
|
}
|