17 lines
535 B
C#
17 lines
535 B
C#
|
|
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>();
|
|
containerInfo.container = container;
|
|
containerInfo.shelf = shelf;
|
|
containerInfo.shelfRow = shelfRow;
|
|
containerInfo.shelColumn = shelColumn;
|
|
containerInfo.shelfLayer = shelfLayer;
|
|
return containerInfo;
|
|
}
|
|
} |