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