public void HandleTimedInput() { if (currentObj.name == "ElementA_text") { if (call.getmixElementAType() == "liquid") { addAColor = GameObject.Find("test-tube_solutionA").GetComponent <addTestTubeAColor> (); if (isElementAadded == false) { addAColor.addColortoMix(); isElementAadded = true; } } animationA = GameObject.Find("Test-tube-A").GetComponent <Animation> (); animationA.Play(); mixCheckOrder.setElement(call.getmixElementA()); testTubeA = GameObject.Find("ElementA_text").GetComponent <TestTubeA> (); testTubeA.setElementA(true); } }