Пример #1
0
        public static async Task <bool> RemoveMateria(BagSlot bagSlot)
        {
            if (bagSlot != null && bagSlot.IsValid)
            {
                Log($"Want to remove Materia from {bagSlot}");
                int count = MateriaCount(bagSlot);
                for (int i = 0; i < count; i++)
                {
                    Log($"Removing materia {count - i }");
                    bagSlot.RemoveMateria();
                    await Coroutine.Sleep(6000);
                }
            }

            Log($"Materia now has {MateriaCount(ItemToRemoveMateria)}");

            return(true);
        }