void Start() { rhinoInfo = GameObject.Find("rhinoInfo"); money = GameObject.Find("scoreGUItext").GetComponent <moneyToBuy>(); pauseBar = GameObject.Find("pauseBar"); rhinoBW = GameObject.Find("rhinoBW"); pauseBarScript = GameObject.Find("pauseBar").GetComponent <pauseBarScale>(); pauseEndScript = GameObject.Find("pauseEnd").GetComponent <pauseEndScale>(); setPosButtonScript = GameObject.Find("bottunDone").GetComponent <bottunDone_TeamSelLev03>(); dummyPos1 = GameObject.Find("dummyPos1"); dummyPos2 = GameObject.Find("dummyPos2"); dummyPos3 = GameObject.Find("dummyPos3"); dummyPos4 = GameObject.Find("dummyPos4"); hand = GameObject.Find("hand"); pos1Check = GameObject.Find("dummyPos1").GetComponent <dummyChaMenuPos1>(); pos2Check = GameObject.Find("dummyPos2").GetComponent <dummyChaMenuPos2>(); pos3Check = GameObject.Find("dummyPos3").GetComponent <dummyChaMenuPos3>(); pos4Check = GameObject.Find("dummyPos4").GetComponent <dummyChaMenuPos4>(); }
void Start() { int totalScore = PlayerPrefs.GetInt("Player Score"); if (totalScore < 20000) { Destroy(gameObject); } money = GameObject.Find("scoreGUItext").GetComponent <moneyToBuy>(); pauseBar = GameObject.Find("pauseBar"); gorillaBW = GameObject.Find("gorillaBW"); pauseBarScript = GameObject.Find("pauseBar").GetComponent <pauseBarScale>(); pauseEndScript = GameObject.Find("pauseEnd").GetComponent <pauseEndScale>(); setPosButtonScript = GameObject.Find("bottunDone").GetComponent <bottunDone_TeamSelLev09>(); dummyPos1 = GameObject.Find("dummyPos1"); dummyPos2 = GameObject.Find("dummyPos2"); dummyPos3 = GameObject.Find("dummyPos3"); dummyPos4 = GameObject.Find("dummyPos4"); pos1Check = GameObject.Find("dummyPos1").GetComponent <dummyChaMenuPos1>(); pos2Check = GameObject.Find("dummyPos2").GetComponent <dummyChaMenuPos2>(); pos3Check = GameObject.Find("dummyPos3").GetComponent <dummyChaMenuPos3>(); pos4Check = GameObject.Find("dummyPos4").GetComponent <dummyChaMenuPos4>(); }
//rhino_chaPick rhinoCheck; void Start() { PlayerPrefs.SetString("chaPos1", ""); PlayerPrefs.SetString("chaPos2", ""); PlayerPrefs.SetString("chaPos3", ""); PlayerPrefs.SetString("chaPos4", ""); rhino = GameObject.Find("rhino"); monkey = GameObject.Find("monkey"); zebra = GameObject.Find("zebra"); money = GameObject.Find("scoreGUItext").GetComponent <moneyToBuy>(); }
void Start() { rhinoScript = GameObject.Find("rhino").GetComponent <rhino_chaPickLev10>(); monkeyScript = GameObject.Find("monkey").GetComponent <monkey_chaPickLev10>(); PlayerPrefs.SetString("chaPos1", ""); PlayerPrefs.SetString("chaPos2", ""); PlayerPrefs.SetString("chaPos3", ""); PlayerPrefs.SetString("chaPos4", ""); rhino = GameObject.Find("rhino"); monkey = GameObject.Find("monkey"); zebra = GameObject.Find("zebra"); gorilla = GameObject.Find("gorilla"); money = GameObject.Find("scoreGUItext").GetComponent <moneyToBuy>(); }
void Start() { zebraInfo = GameObject.Find("zebraInfo"); handCuffs_zebra = GameObject.Find("handCuffs_zebra"); if (PlayerPrefs.GetInt("zebraArrested") == 1) { handCuffs_zebra.renderer.enabled = true; } PlayerPrefs.GetInt("zebraArrested"); int totalScore = PlayerPrefs.GetInt("Player Score"); if (PlayerPrefs.GetInt("zebraArrested") == 1 && totalScore < 20000) { Destroy(gameObject); } money = GameObject.Find("scoreGUItext").GetComponent <moneyToBuy>(); pauseBar = GameObject.Find("pauseBar"); zebraBW = GameObject.Find("zebraBW"); pauseBarScript = GameObject.Find("pauseBar").GetComponent <pauseBarScale>(); pauseEndScript = GameObject.Find("pauseEnd").GetComponent <pauseEndScale>(); setPosButtonScript = GameObject.Find("bottunDone").GetComponent <bottunDone_TeamSelLev08>(); dummyPos1 = GameObject.Find("dummyPos1"); dummyPos2 = GameObject.Find("dummyPos2"); dummyPos3 = GameObject.Find("dummyPos3"); dummyPos4 = GameObject.Find("dummyPos4"); hand = GameObject.Find("hand"); pos1Check = GameObject.Find("dummyPos1").GetComponent <dummyChaMenuPos1>(); pos2Check = GameObject.Find("dummyPos2").GetComponent <dummyChaMenuPos2>(); pos3Check = GameObject.Find("dummyPos3").GetComponent <dummyChaMenuPos3>(); pos4Check = GameObject.Find("dummyPos4").GetComponent <dummyChaMenuPos4>(); }
//rhino_chaPick rhinoCheck; void Start() { PlayerPrefs.SetString("chaPos1", ""); PlayerPrefs.SetString("chaPos2", ""); PlayerPrefs.SetString("chaPos3", ""); PlayerPrefs.SetString("chaPos4", ""); rhino = GameObject.Find("rhino"); monkey = GameObject.Find("monkey"); zebra = GameObject.Find("zebra"); int totalScore = PlayerPrefs.GetInt("Player Score"); //rhinoCheck = GameObject.Find ("rhino").GetComponent<rhino_l03_chaPick>(); money = GameObject.Find("scoreGUItext").GetComponent <moneyToBuy>(); if (totalScore < 10000) { Destroy(rhino); } }
void Start() { money = GameObject.Find("scoreGUItext").GetComponent <moneyToBuy>(); pauseBar = GameObject.Find("pauseBar"); monkeyBW = GameObject.Find("monkeyBW"); pauseBarScript = GameObject.Find("pauseBar").GetComponent <pauseBarScale>(); pauseEndScript = GameObject.Find("pauseEnd").GetComponent <pauseEndScale>(); setPosButtonScript = GameObject.Find("bottunDone").GetComponent <bottunDone_TeamSelLev03>(); dummyPos1 = GameObject.Find("dummyPos1"); dummyPos2 = GameObject.Find("dummyPos2"); dummyPos3 = GameObject.Find("dummyPos3"); dummyPos4 = GameObject.Find("dummyPos4"); pos1Check = GameObject.Find("dummyPos1").GetComponent <dummyChaMenuPos1>(); pos2Check = GameObject.Find("dummyPos2").GetComponent <dummyChaMenuPos2>(); pos3Check = GameObject.Find("dummyPos3").GetComponent <dummyChaMenuPos3>(); pos4Check = GameObject.Find("dummyPos4").GetComponent <dummyChaMenuPos4>(); hand = GameObject.Find("hand"); //////////monkey if (hand && PlayerPrefs.GetInt("handTeamHiringAlreadyShown") == 0) { PlayerPrefs.SetInt("handTeamHiringAlreadyShown", 1); } else { Destroy(hand); } }