LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/AudioSourceComparer.cs
2023-12-22 18:30:10 -05:00

15 lines
323 B
C#

using System.Collections.Generic;
using UnityEngine;
internal class AudioSourceComparer : IEqualityComparer<AudioSource>
{
public bool Equals(AudioSource x, AudioSource y)
{
return x.GetInstanceID() == y.GetInstanceID();
}
public int GetHashCode(AudioSource obj)
{
return obj.GetInstanceID().GetHashCode();
}
}