Example #1
0
    static void setMoney(float amount)
    {
        float floatChange = 0;

        floatChange = amount;
        PlayerDataHolder.Current.PlayerMoney.MoneyChange(floatChange);
        OnChangeFetch?.Invoke(amount);
    }
Example #2
0
    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);
    }