private void Execut(ItemData itemData, PlayerCharacter taregt) { //アイテムの消費 GameController.GetInventorySystem().UseItem(itemData); List <CommandEffect> commandEffect = itemData.effects; foreach (var item in commandEffect) { DoEffect(item, taregt); } itemWindow.Open(); }
private async void ItemExecut(Item itemData, CharacterData taregt) { //アイテムの消費 InventorySystem.Remove(itemData); List <Effect> commandEffect = itemData.effects; foreach (var item in commandEffect) { DoEffect(item, taregt); } await Task.Delay(1000); itemWindow.Open(); }