Пример #1
0
 float distance = Vector2.Distance(bLoc, pos);
            if (distance < 0.5)
                return element;
        }
        return null;
    }
    internal bool DestroyElement(ActiveElementType element, bool useTool)
    {
        if (useTool)
            if (!_inv.ElementToolUse(element.ElementTypeInUse))
                return false;
        _elements.Remove(element);
        Destroy(element.gameObject);
        return true;
    }
    //Monsters
    private void SetAvailableMarketMonsters(TerrainIns terrain)
    {