Class LeaderboardManager
This class manages the leaderboard, including initializing player icons, updating player positions, and displaying hold times.
Inheritance
object
LeaderboardManager
Namespace: Game
Assembly: cs.temp.dll.dll
Syntax
public class LeaderboardManager : MonoBehaviour
Properties
Instance
A single instance of this class that can be accessed from anywhere.
Declaration
public static LeaderboardManager Instance { get; }
Property Value
| Type | Description |
|---|---|
| LeaderboardManager |
Methods
UpdateLeaderboard()
Updates the leaderboard by sorting players based on their hold times and adjusting their positions.
Declaration
public void UpdateLeaderboard()
UpdatePlayerHoldTimeText(GameObject, float)
Updates the hold time text for a specific player on the leaderboard.
Declaration
public void UpdatePlayerHoldTimeText(GameObject player, float holdTime)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | player | The player whose hold time is being updated. |
| float | holdTime | The new hold time to display. |