public void showTryAgain(string str) { CancelInvoke(); hideHint(); welldone.SetActive(false); Camera.main.GetComponent <GvrPointerPhysicsRaycaster> ().enabled = false; // tryagain.SetActive (true); switch (str) { case "RBC": NotRBCs.SetActive(true); break; case "Platelet": NotPlatellets.SetActive(true); break; case "Neutrophil": NotNeutrophil.SetActive(true); break; case "Eosinophil": NotEosinophil.SetActive(true); break; case "Basophil": NotBasophil.SetActive(true); break; case "Lymphocyte": NotLymphocyte.SetActive(true); break; case "Monocyte": NotMonocyte.SetActive(true); break; default: print("String not found"); break; } // tryagain.GetComponentInChildren<Text> ().text = string.Format("This is not {0}\nTry again.",str); // tryagain.GetComponentInChildren<Text> ().text = string.Format("This is not {0}\nTry again.",LanguageManager.Instance.GetTextValue (str)); // tryagain.GetComponentInChildren<Text> ().text = string.Format("{0} {1}\n{2}",LanguageManager.Instance.GetTextValue("notThis"),LanguageManager.Instance.GetTextValue (str),LanguageManager.Instance.GetTextValue("Tryagain")); Invoke("showHint", GlobalAudioSrc.Instance.audioSrc.clip.length + .4f); // Invoke ("showHint", 3); }
public void showHint() { welldone.SetActive(false); tryagain.SetActive(false); NotRBCs.SetActive(false); NotPlatellets.SetActive(false); NotNeutrophil.SetActive(false); NotMonocyte.SetActive(false); NotLymphocyte.SetActive(false); NotEosinophil.SetActive(false); NotBasophil.SetActive(false); if (FixVeriable.PartNumber == FixVeriable.discription) { } if (FixVeriable.PartNumber == FixVeriable.collection) { if (FixVeriable.collectNumber == 0) { collectRBC.SetActive(true); } if (FixVeriable.collectNumber == 1) { collectPletellet.SetActive(true); } if (FixVeriable.collectNumber == 2) { collectNeutrophil.SetActive(true); } if (FixVeriable.collectNumber == 3) { collectEosinophil.SetActive(true); } if (FixVeriable.collectNumber == 4) { collectBasophil.SetActive(true); } if (FixVeriable.collectNumber == 5) { collectLymphocyte.SetActive(true); } if (FixVeriable.collectNumber == 6) { collectMonocyte.SetActive(true); } } Camera.main.GetComponent <GvrPointerPhysicsRaycaster> ().enabled = true; }