예제 #1
0
    /// <summary>
    /// 武器购买
    /// </summary>
    /// <param name="id"></param>
    public void WeaponBuy(int id)
    {
        WeaponItem wi = GetWeaponItemById(id);

        if (wi != null)
        {
            if (!wi.Enabled())
            {
                if (Player.CurrentPlayer.BuyWeapon(wi.Id, wi.Prices))
                {
                    wi.Unlock();
                }
            }
        }
    }