void Awake() { getScoreboard = getScoreboardObj.GetComponent <GetScoreboard>(); chooseBtn = chooseBtnObj.GetComponent <Button>(); insertBtn = insertBtnObj.GetComponent <Button>(); dragBtn = dragBtnObj.GetComponent <Button>(); allBtn = allBtnObj.GetComponent <Button>(); synBtn = synBtnObj.GetComponent <Button>(); chooseTxt = chooseBtnObj.GetComponentInChildren <Text>(); insertTxt = insertBtnObj.GetComponentInChildren <Text>(); dragTxt = dragBtnObj.GetComponentInChildren <Text>(); allTxt = allBtnObj.GetComponentInChildren <Text>(); synTxt = synBtnObj.GetComponentInChildren <Text>(); contentAreaObjects = new List <GameObject>(); leaderboardPlayerPrefabsScr = new List <LeaderboardPlayerPrefab>(); scrollRectScorboard = objScrollViewTxtScoreboard.GetComponent <ScrollRect>(); contentTrans = contentObj.GetComponent <RectTransform>(); thisPlayerObj.SetActive(false); leaderboard = (LoadLeaderboard)GameObject.FindObjectOfType(typeof(LoadLeaderboard)); }
// Use this for initialization void Awake() { if (GameSettings.SOLO) { objTimer.SetActive(false); soloButtonObj.SetActive(true); } scrTimer = objTimer.GetComponent <TimerUI>(); scrGetScoreboard = objGetScoreboard.GetComponent <GetScoreboard>(); called = false; }
// Use this for initialization void Awake() { if (GameSettings.SOLO) { objTimer.SetActive(false); soloButtonObj.SetActive(true); soloButtonText = soloButtonObj.GetComponentInChildren <Text>(); /*soloButtonText.text = TEXT_NEXT; * if (GameInfoChoose.currentRound == (GameInfoChoose.info.number_of_rounds - 1)) * { * soloButtonText.text = TEXT_END; * }*/ } scrTimer = objTimer.GetComponent <TimerUI>(); starsScripts = new StarsPrefab[starsObj.Length]; for (int i = 0; i < starsObj.Length; i++) { starsScripts[i] = starsObj[i].GetComponent <StarsPrefab>(); } sumPointsText = sumPointsObj.GetComponent <Text>(); rightOrderScoreText = rightOrderScoreObj.GetComponent <Text>(); rightOrderText = rightOrderTextObj.GetComponent <Text>(); chosenWordsText = new Text[3]; chosenWordsScoreText = new Text[3]; for (int i = 0; i < 3; i++) { chosenWordsText[i] = chosenWordsObj[i].GetComponent <Text>(); chosenWordsScoreText[i] = chosenWordsScoreObj[i].GetComponent <Text>(); chosenWordsText[i].text = ""; chosenWordsScoreText[i].text = ""; } scrSendScore = objSendScore.GetComponent <SendScore>(); scrGetScoreboard = objGetScoreboard.GetComponent <GetScoreboard>(); scrConnect = objConnect.GetComponent <Connect>(); saveRound = GameInfoChoose.currentRound; maxRounds = GameInfoChoose.info.number_of_rounds; canvasObj.SetActive(false); objProgressCircle.SetActive(true); }
// Use this for initialization void Awake() { objTimer.SetActive(false); soloButtonObj.SetActive(true); scrTimer = objTimer.GetComponent <TimerUI>(); starsScripts = new StarsPrefab[starsObj.Length]; for (int i = 0; i < starsObj.Length; i++) { starsScripts[i] = starsObj[i].GetComponent <StarsPrefab>(); } sumPointsText = sumPointsObj.GetComponent <Text>(); soloText = soloButtonObj.GetComponentInChildren <Text>(); chosenWordsText = new Text[3]; chosenWordsScoreText = new Text[3]; for (int i = 0; i < 3; i++) { chosenWordsText[i] = chosenWordsObj[i].GetComponent <Text>(); chosenWordsScoreText[i] = chosenWordsScoreObj[i].GetComponent <Text>(); chosenWordsText[i].text = ""; chosenWordsScoreText[i].text = ""; } scrSendScore = objSendScore.GetComponent <SendScore>(); scrGetScoreboard = objGetScoreboard.GetComponent <GetScoreboard>(); scrConnect = objConnect.GetComponent <Connect>(); saveRound = GameInfoInsert.currentRound; maxRounds = GameInfoInsert.info.number_of_rounds; canvasObj.SetActive(false); objProgressCircle.SetActive(true); setUpWords(); CheckScores(); }
// Use this for initialization void Awake() { canvasObj.SetActive(false); if (GameSettings.SOLO) { objTimer.SetActive(false); soloButtonObj.SetActive(true); } scrTimer = objTimer.GetComponent <TimerUI>(); scrollRectWords = objScrollViewTxtWordsObj.GetComponent <ScrollRect>(); contentTrans = contentObj.GetComponent <RectTransform>(); scrSendScore = objSendScore.GetComponent <SendScore>(); sumPointsText = sumPointsObj.GetComponent <Text>(); scrConnect = objConnect.GetComponent <Connect>(); scrGetScoreboard = objGetScoreboard.GetComponent <GetScoreboard>(); /*rightOrderScoreText = rightOrderScoreObj.GetComponent<Text>(); * * chosenWordsText = new Text[3]; * chosenWordsScoreText = new Text[3]; * for (int i = 0; i < 3; i++) * { * chosenWordsText[i] = chosenWordsObj[i].GetComponent<Text>(); * chosenWordsScoreText[i] = chosenWordsScoreObj[i].GetComponent<Text>(); * * chosenWordsText[i].text = ""; * chosenWordsScoreText[i].text = ""; * } * * saveRound = GameInfoChoose.currentRound; * maxRounds = GameInfoChoose.info.number_of_rounds;*/ //setUpWords(); }