public void enableC() { testTubeA = GameObject.Find("ElementA_text").GetComponent <TestTubeA> (); print("im here" + testTubeA.isElementAActive()); testTubeB = GameObject.Find("ElementB_text").GetComponent <TestTubeB> (); isTestTubesActive = true; }
void Start() { currentObj = gameObject; gameViewer = currentObj.transform.gameObject; camera = GameObject.FindGameObjectWithTag("MainCamera"); if (isTestTubesActive == true) { testTubeA = GameObject.Find("ElementA_text").GetComponent <TestTubeA> (); testTubeB = GameObject.Find("ElementB_text").GetComponent <TestTubeB> (); } if (mixEx != null) { mixEx.SetActive(false); } }
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); } }