Пример #1
0
        public bool CheckTile(TileSlot tile)
        {
            EquipManager equipManager = EquipManager.GetInstance;

            if (tile.GetTileAbst is GatherableTileSO gatherable)
            {
                return(equipManager.GetToolActive(gatherable.GetToolType) && gatherable.GetSourceTier <= equipManager.GetTierByEnum(gatherable.GetToolType) && tile.IsGatherable);
            }
            return(false);
        }