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); } }
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); } }