Player Economy
Last updated
Last updated
The PlayerEconomy
class is responsible for managing the economy of the player.
Properties
private PlayerWorker playerWorker
: References the PlayerWorker
associated with PlayerEconomy
private float coins
Constructor
public PlayerEconomy(PlayerWorker playerWorker)
: Initializes a new instance of the PlayerEconomy
class, assigning the PlayerWorker
.
Methods
public void AddCoins(float coins)
: Adds a specified amount of coins to the player's current balance.
public void DecreaseCoins(float coins)
: Subtracts a specified amount of coins from the player's current balance.
public float GetCoins()
: Retrieves the current coin balance of the player.