Spend Money

public void SpendMoney(int amount)

This method removes money from player.

Example

// this example code can be runned from any script

Player.LocalPlayer.SpendMoney(500); // getting local player and spending 500 money from him

Warning

Subject to change: in the next versions planned to enhance resource system to support multiple resources types.