public void Start() { _container = new Container(gameObject, 5, 2); StartCoroutine(CreatePanels()); }
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 ; }