AK056/Assets/GameLogic/Game/Utility/Factory/ContainerFactory.cs

20 lines
635 B
C#

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>();
containerInfo.mapContainer = mapContainer;
containerInfo.shelf = shelf;
containerInfo.shelfRow = shelfRow;
containerInfo.shelColumn = shelColumn;
containerInfo.shelfLayer = shelfLayer;
return containerInfo;
}
}
}