void Start() { Monetization.Initialize("2943700", true); this.rzabkaGiver = GameObject.Find("RzabaSpawner").GetComponent <RzabaSpawner>(); ZaboPodmieniarka(rzabkaGiver.ProszemDacRzabke(new Vector3(0, 0, 0))); this.flowerManager = new FlowerManager(); this.lootSpawner = GameObject.Find("LootSpawner").GetComponent <LootSpawner>(); this.happyFrogs = new List <GameObject>(); this.currentFrog = GameObject.Find("Frog"); this.modifiers = new List <FlowerModifier>(); Screen.orientation = ScreenOrientation.Portrait; this.wybuch = GameObject.Find("Wybuch").transform.Find("Explosion"); this.wybuch.gameObject.SetActive(false); this.dymek = GameObject.Find("Dymek").transform.Find("Smoke"); this.dymek.gameObject.SetActive(false); this.goToCollectionButton = GameObject.Find("GoToCollectionButton"); this.trzepacz = GameObject.Find("TrzepaczHajsu").GetComponent <TrzepaczHajsu>(); this.trzepacz.rewarder = delegate(bool p) { modifiers.Add(new FlowerModifier(2, 60, p)); }; this.playerResourcesScript = GameObject.Find("PlayerResources").GetComponent <PlayerResourcesScript>(); LoadData(); GameObject.Find("Shop").GetComponent <ShopScript>().itemDatas.FindAll(x => x.isBought).ForEach(x => { modifiers.Add(new FlowerModifier(2, 60, true)); }); }
void Start() { content = GameObject.Find("PrawdziwyShopContent"); itemListPrefab = Resources.Load <GameObject>("Prefabs/ItemList"); this.prs = GameObject.Find("PlayerResources").GetComponent <PlayerResourcesScript>(); this.trzepacz = GameObject.Find("TrzepaczHajsu").GetComponent <TrzepaczHajsu>(); InstantiateList(itemDatas.FindAll(item => item.rarity == ItemData.rarities.GOWNO), "No generalnie to nie polecam"); InstantiateList(itemDatas.FindAll(item => item.rarity == ItemData.rarities.ZWYKLE), "Zwykłe"); InstantiateList(itemDatas.FindAll(item => item.rarity == ItemData.rarities.DOBRE), "Dobre"); InstantiateList(itemDatas.FindAll(item => item.rarity == ItemData.rarities.ZAJEBISTE), "No generalnie to polecam"); }
void Start() { this.trzepacz = GameObject.Find("TrzepaczHajsu").GetComponent <TrzepaczHajsu>(); this.goToCollectionButton = GameObject.Find("GoToCollectionButton"); timer = 600.0f; }