19 lines
385 B
C#
19 lines
385 B
C#
|
using System.Collections.Generic;
|
|||
|
using UnityEngine.SceneManagement;
|
|||
|
|
|||
|
namespace FishNet.Serializing.Helping
|
|||
|
{
|
|||
|
internal sealed class SceneHandleEqualityComparer : EqualityComparer<Scene>
|
|||
|
{
|
|||
|
public override bool Equals(Scene a, Scene b)
|
|||
|
{
|
|||
|
return (a.handle == b.handle);
|
|||
|
}
|
|||
|
|
|||
|
public override int GetHashCode(Scene obj)
|
|||
|
{
|
|||
|
return obj.handle;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|