Esempio n. 1
0
        public void addMoney(int source, string type, int money_)
        {
            PlayerMoney money = PlayerMoneyHolder.getPlayerMoney(source);

            if (type.Equals("money"))
            {
                money.addMoney(money_);
            }
            if (type.Equals("bankmoney"))
            {
                money.addBankMoney(money_);
            }
            if (type.Equals("dirtymoney"))
            {
                money.addDirtyMoney(money_);
            }
        }