示例#1
0
    public Container(Map map, ContainerType containerType)
    {
        this.map           = map;
        this.containerType = containerType;

        connectedContainers = new List <Container>();
        connectedContainers.Add(this);

        tiles = new List <Tile>();

        gameObject = containerType.PopulateGameObject();

        this.doors = new List <Door>();
    }