Пример #1
0
        public void Start()
        {
            _container = new Container(gameObject, 5, 2);

            StartCoroutine(CreatePanels());
        }
Пример #2
0
        public SideWall(Container container, int length)
        {
            Object empty = Resources.Load("Stranica");
            Wall = Object.Instantiate(empty) as GameObject;

            Object prefab = Resources.Load("PanelBabo");

            CreateChildPanels(length, prefab);
            //this.wall.transform.rotation = this.wall.transform.rotation * orientation ;
        }