public override int FillItems(Transform spawn, CarouselGO _carouselGO) { this.itemsStore = new List <ItemStore>(); this.carouselGO = _carouselGO; for (int i = 0; i < UpgradesMan.Instance.gameUpgrades.upgrades.Count; i++) { GameObject g = GameObject.Instantiate(UpgradesMan.Instance.gameUpgrades.upgrades[i].prefabUpgradeGO, spawn.position, Quaternion.identity); g.SetActive(false); itemsStore.Add(g.GetComponent <ItemStore>()); } return(itemsStore.Count); }
public override int FillItems(Transform spawn, CarouselGO _carouselGO) { this.itemsStore = new List <ItemStore>(); this.carouselGO = _carouselGO; for (int i = 0; i < CharacterMan.Instance.charactersCollection.characters.Count; i++) { GameObject g = GameObject.Instantiate(CharacterMan.Instance.charactersCollection .characters[i].playerUIPrefab, spawn.position, Quaternion.identity); g.transform.rotation = Quaternion.Euler(-180, 0, -180); g.SetActive(false); g.transform.localScale = new Vector3(250, 250, 250); itemsStore.Add(g.GetComponent <ItemStore>()); //CharacterMan } return(itemsStore.Count); }
public abstract int FillItems(Transform pos, CarouselGO carouselGO);