public void FillOrShow() { dataCarouselGO = this.GetComponent <DataCarouselGO>(); if (!this.filled) { this.numItems = FillItems(); this.gameObject.SetActive(true); } else { this.gameObject.SetActive(true); } this.dataCarouselGO.UpdateData(this.currentItem); }
private void Start() { //FillItems(); dataCarouselGO = this.GetComponent <DataCarouselGO>(); //dataCarouselGO.UpdateData(0); }