LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/AudioSourceComparer.cs

16 lines
323 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
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();
}
}