Exemplo n.º 1
0
 /// <summary>
 /// Get the Player's current cash
 /// </summary>
 public static double GetCash(this InGame inGame)
 {
     return(inGame.GetCashManager().cash.Value);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Set the Player's cash to a specific amount
 /// </summary>
 /// <param name="amount">Value to set cash to</param>
 public static void SetCash(this InGame inGame, double amount)
 {
     inGame.GetCashManager().cash.Value = amount;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Set the Player's cash to a specific amount
 /// </summary>
 /// <param name="amount">Value to set cash to</param>
 public static void SetCash(this InGame inGame, double amount)
 {
     inGame.GetCashManager().cash.Value = amount;
     InGame.instance.bridge.OnCashChangedSim();
 }