Esempio n. 1
0
    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();
    }
Esempio n. 2
0
    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();
    }