This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
station_obscurum_unity/Assets/Packages/FishNet/Runtime/Serializing/SceneComparer.cs

19 lines
385 B
C#
Raw Permalink Normal View History

2023-05-31 17:32:21 +02:00
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;
}
}
}