Ejemplo n.º 1
0
    public override void DoAction(PlayerCharacter character, ItemSlot slot)
    {
        Selectable select = Selectable.GetNearestGroup(target_groups, character.transform.position);

        if (select != null)
        {
            DoAction(character, slot, select);
        }
    }
Ejemplo n.º 2
0
    public override bool CanDoAction(PlayerCharacter character, ItemSlot slot)
    {
        Selectable water_source = Selectable.GetNearestGroup(target_groups, character.transform.position, fill_range);

        return(water_source != null && PlayerData.Get().CanTakeItem(filled_item.id, 1));
    }