/// <summary> /// For button "Start_Button". Launching test and timer /// </summary> public void StartTest() { #if UNITY_IOS || UNITY_ANDROID Analytics.CustomEvent("Test_Started", new Dictionary <string, object> { { "Level_ID", "Level_" + this.GetComponent <ExampleGenerator>().exampleSwitch.Value } }); #endif //showing digits digits.SetActive(true); iTween.MoveTo(digits, bottomMiddle.position, .3f); iTween.MoveTo(instruction, bottomRight.position, .8f); //generating and showing math example userInput.SetActive(true); this.GetComponent <ExampleGenerator>().NewExample(); mathExample.SetActive(true); iTween.PunchScale(mathExample, new Vector3(1.5f, 1.5f, 1), .3f); iTween.PunchScale(questionMarkGreen, new Vector3(1.5f, 1.5f, 1), .3f); //turn on "Test in process" trigger isTestRunning.On(); //Starting Timer timer.GetComponentInChildren <Timer>().resetTime(); timer.SetActive(true); StartCoroutine(timer.GetComponentInChildren <Timer>().StartTimer()); }