using System; namespace UnityAtoms { public abstract class EquatableAtomVariable : AtomVariable where T : IEquatable where E1 : AtomEvent where E2 : AtomEvent { protected override bool AreEqual(T t1, T t2) { return (t1 == null && t2 == null) || (t1 != null && t1.Equals(t2)); } } }