예제 #1
0
    public void Repair()
    {
        if (DB_Resources.GetItem(2).quantity >= repairCost)
        {
            DB_Resources.GetItem(2).quantity -= repairCost;
            equipment.Repair();
            Initial();

            ResourcesUIControl.SetResoucesValue();

            DB_EquipmentInventory.SaveEquipData();
            DB_Resources.SaveResoucesData();
        }
    }
예제 #2
0
    //Btn Action
    public void Unlock()
    {
        if (DB_Resources.GetItem(1).quantity >= unlockCost)
        {
            DB_Resources.GetItem(1).quantity -= unlockCost;
            equipment.UnlockItem();
            Initial();

            ResourcesUIControl.SetResoucesValue();

            DB_EquipmentInventory.SaveEquipData();
            DB_Resources.SaveResoucesData();
        }
    }