public void HandleTimedInput() { if (currentObj.name == "ElementB_text") { if (call.getmixElementBType() == "liquid") { addBColor = GameObject.Find("test-tube_solutionB").GetComponent <addTestTubeBColor> (); print("hereeeeeee"); if (isElementBadded == false) { addBColor.addColortoMix(); isElementBadded = true; } } animationB = GameObject.Find("Test-tube-B").GetComponent <Animation> (); animationB.Play(); // return new WaitForSeconds(2); StartCoroutine(WaitForAnimation()); mixCheckOrder.setElement(call.getmixElementB()); testTubeB = GameObject.Find("ElementB_text").GetComponent <TestTubeB> (); testTubeB.setElementB(true); } }