void Start() { buttonReleaseScript = GameObject.Find("ButtonRelease").GetComponent<ButtonReleased>(); inGameUI = GameObject.Find("InGameUIManager").GetComponent<InGameUIManager>(); nappyPadSpawnerObj = GameObject.Find("NappyPadSpawner"); if(nappyPadSpawnerObj != null) { nappyPadSpawnerScript = nappyPadSpawnerObj.GetComponent<NappyPadSpawner>(); } nappyPadSpawnerScript.nappyPadCount++; if(!inGameUI.firstNappy) { if(inGameUI.isLevel1) { inGameUI.Enable("PlayerButtonTutorialLabel5"); inGameUI.Enable("LeftArrow"); inGameUI.firstNappy = true; } } sm = GameObject.Find("SoundManager").GetComponent<SoundManager>(); }
void Start() { bottles = GameObject.Find("BottlesSpawner").GetComponent<BottlesSpawner>(); buttonReleaseScript = GameObject.Find("ButtonRelease").GetComponent<ButtonReleased>(); inGameUI = GameObject.Find("InGameUIManager").GetComponent<InGameUIManager>(); menuButtonScript = GameObject.Find("UIPanel").GetComponent<MenuButton>(); sm = GameObject.Find("SoundManager").GetComponent<SoundManager>(); inGameUI.PF_Bottle = this.gameObject; if(!bottles.firstTimeBottleClicked && inGameUI.isLevel1) { inGameUI.Enable("5. CollectBottles"); bottles.firstTimeBottleClicked = true; } //pbm.totalBottles++; }