static void setMoney(float amount) { float floatChange = 0; floatChange = amount; PlayerDataHolder.Current.PlayerMoney.MoneyChange(floatChange); OnChangeFetch?.Invoke(amount); }
public static void SetMoney(EventInfo info) { float floatChange = 0; FloatChangeInfo floatChangeInfo = (FloatChangeInfo)info; floatChange = floatChangeInfo.changeofFloat; OnChangeFetch?.Invoke(floatChangeInfo.changeofFloat); PlayerDataHolder.Current.PlayerMoney.MoneyChange(floatChange); }