/// <summary> /// Get the Player's current cash /// </summary> public static double GetCash(this InGame inGame) { return(inGame.GetCashManager().cash.Value); }
/// <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; }
/// <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(); }