Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luojingzhao opened this issue Oct 11, 2022 · 6 comments

Comments

@luojingzhao
Copy link

'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
Copy link
Author

tag: 2020.3 last version

@luojingzhao
Copy link
Author

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

@ChuanXin-Unity
Copy link
Collaborator

Will fix, thanks!

@ChuanXin-Unity
Copy link
Collaborator

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

@Affan07
Copy link

Affan07 commented Oct 22, 2022

image

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

@ChuanXin-Unity
Copy link
Collaborator

ChuanXin-Unity commented Oct 23, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants