private void OnGUI() { GetText.text = Cube.RetTPar().ToString(); printScores = Cube.loadScore(); GetText2.text = printScores.ToString(); //bool onmode3block = false; //if (modeLvl == 0) //{ // GetText2.gameObject.SetActive(true); // GetText.gameObject.SetActive(true); // GetText2.text = string.Format("{0}", TargetScore); // GetText.text = string.Format("{0}", printScores); // onmode3block = true; //} //else if (modeLvl == 3) //{ // GetText2.gameObject.SetActive(true); // GetText.gameObject.SetActive(true); // GetText2.text = string.Format("{0}", blockscount); // GetText.text = string.Format("{0}", printScores); // if (blockscount == 0) // { // onmode3block = true; // } //} //else if (modeLvl == 2) //{ // GetText2.gameObject.SetActive(false); // GetText.gameObject.SetActive(true); // IngredientsCountUIText.text = string.Format("{0}", ingCtar[0]); // IngredientsCountUIText2.text = string.Format("{0}", ingCtar[1]); // GetText.text = string.Format("{0}", printScores); // onmode3block = true; //} //else if (modeLvl == 1) //{ // GetText2.gameObject.SetActive(false); // GetText.gameObject.SetActive(true); // IngredientsCountUIText.text = string.Format("{0}", ingCtar[0]); // IngredientsCountUIText2.text = string.Format("{0}", ingCtar[1]); // GetText.text = string.Format("{0}", printScores); // if ((int)ltype == 0) onmode3block = true; //} //else { // GetText2.gameObject.SetActive(false); // GetText.gameObject.SetActive(true); //} //if ((uint)ltype == 1) //{ // GetTextTimer.gameObject.SetActive(true); // //GetTextTimer.text = string.Format("{0}", Limit); // GetTextTimer.GetComponent<TimerCount>().limitTypers = 1; // if (modeLvl == 1 && (Limit == 0|| GetTextTimer.text == "1")) { // onmode3block = true; // } //} //else //{ // GetTextTimer.gameObject.SetActive(false); //} //if (onmode3block == true && printScores != 0 && printScores >= TargetScore && GetMoveLayer.movecount == GetMoveLayer.limitMove && GetMoveLayer.state == 0) //{ // nazad2();// // //GetText.text = string.Format("{0}", printScores); // //PlayerPrefs.SetInt(string.Format("{0}", currentlvl + 1), 1); // //NazadButton.gameObject.SetActive(true); // //NextImage.gameObject.SetActive(true); // //NextImage.GetComponent<Animation>().Play(); // //SaveBombStripePackage(); // //if (printScores >= TargetScore) // //{ // // NextImage.GetComponent<NextImageScript>().starPrefab1.SetActive(true); // // //loadLB(); // // //GetMoveLayer.ender(); // // PlayerPrefs.SetString(string.Format("lvl:{0}", currentlvl), "star1"); // // if (printScores >= TargetScore1) // // { // // NextImage.GetComponent<NextImageScript>().starPrefab2.SetActive(true); // // PlayerPrefs.SetString(string.Format("lvl:{0}", currentlvl), "star2"); // // if (printScores >= TargetScore2) // // { // // NextImage.GetComponent<NextImageScript>().starPrefab3.SetActive(true); // // PlayerPrefs.SetString(string.Format("lvl:{0}", currentlvl), "star3"); // // } // // else // // { // // NextImage.GetComponent<NextImageScript>().starPrefab3.SetActive(false); // // } // // } // // else // // { // // NextImage.GetComponent<NextImageScript>().starPrefab2.SetActive(false); // // NextImage.GetComponent<NextImageScript>().starPrefab3.SetActive(false); // // } // //} // //else // //{ // // NextImage.GetComponent<NextImageScript>().starPrefab1.SetActive(false); // // NextImage.GetComponent<NextImageScript>().starPrefab2.SetActive(false); // // NextImage.GetComponent<NextImageScript>().starPrefab3.SetActive(false); // //} //} }