Skip to content

Constructor parameter 'leaderboardId' is not used. #3120

Open
@epsmarkh

Description

@epsmarkh

Describe the bug
In the PlayGamesScore constructor, the parameter 'leaderboardId' is not used and the function is actually using the class variable leaderboardID instead.

To Reproduce
Steps to reproduce the behavior:

  1. View the code in PlayGamesScore.cs
    internal PlayGamesScore(DateTime date, string leaderboardId,
    ulong rank, string playerId, ulong value, string metadata)
    {
    this.mDate = date;
    mLbId = leaderboardID;
    this.mRank = rank;
    this.mPlayerId = playerId;
    this.mValue = (long) value;
    this.mMetadata = metadata;
    }

Note the different case causing the erroneous assignment.

Expected behavior
Parameters passed to the function are used correctly

Observed behavior
Leaderboard id is ignored and the value already in the class is used

Bug Report
NA

Screenshots
NA

Versions

  • Unity version: All
  • Google Play Games Plugin for Unity version: 0.10.14

Additional context
NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions