Unity-Technologies / 2d-extras

Fun 2D Stuff that we'd like to share!
Other
1.55k stars 343 forks source link

GridInformation.cs error : The name 'HashCode' does not exist in the current context #350

Open luojingzhao opened 2 years ago

luojingzhao commented 2 years ago

'HashCode' does not exist

internal struct GridInformationKey : IEquatable<GridInformationKey>
{
    public Vector3Int position;
    public String name;

    public bool Equals(GridInformationKey key)
    {
        return position == key.position && name == key.name;
    }

    public override int GetHashCode()
    {
        return HashCode.Combine(position.GetHashCode(), name.GetHashCode());
    }
}
luojingzhao commented 2 years ago

tag: 2020.3 last version

luojingzhao commented 2 years ago

Unity Version: 2020.3.21f, Api Level: .NET 4.X

ChuanXin-Unity commented 2 years ago

Will fix, thanks!

ChuanXin-Unity commented 2 years ago

Sorry about this issue, we have updated the branch with a fix!

Affan07 commented 2 years ago

image

Sorry, but the issue still persists with an additional error.

ChuanXin-Unity commented 2 years ago

Hi, which version of Unity are you using? The master branch of this repo is meant for 2021.1 and above. If you are using 2020.3, could you try the 2020.3 branch of this repo?

On Sat, Oct 22, 2022, 14:40 Affan @.***> wrote:

[image: image] https://user-images.githubusercontent.com/6506010/197322443-da77a236-2281-4408-bb04-aa83a3533078.png

Sorry, but the issue still persists with an additional error.

— Reply to this email directly, view it on GitHub https://github.com/Unity-Technologies/2d-extras/issues/350#issuecomment-1287638188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHA3TEVXKGU257KOLB7WWYLWEN45TANCNFSM6AAAAAARB5NE6Q . You are receiving this because you commented.Message ID: @.***>