コード例 #1
0
 /// <summary>
 /// Get the Player's current cash
 /// </summary>
 public static double GetCash(this InGame inGame)
 {
     return(inGame.GetCashManager().cash.Value);
 }
コード例 #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;
 }
コード例 #3
0
ファイル: InGameExt.cs プロジェクト: gurrenm3/BTD-Mod-Helper
 /// <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();
 }