using System; using UnityEngine; namespace GameLogic { public static class ContainerFactory { public static ContainerInfo CreateInfo(GameObject mapContainer, ShelfActor shelf, int shelfRow, int shelColumn, int shelfLayer) { var containerInfo = Activator.CreateInstance(); containerInfo.mapContainer = mapContainer; containerInfo.shelf = shelf; containerInfo.shelfRow = shelfRow; containerInfo.shelColumn = shelColumn; containerInfo.shelfLayer = shelfLayer; return containerInfo; } } }