public void HandleTimedInput() { if (currentObj.tag == "bunsenburner") { heatEx.SetActive(true); // StartCoroutine (moveheat ()); stand.SetActive(false); microscope.SetActive(false); getHeatElement getHeat = GameObject.Find("HeatElement").GetComponent <getHeatElement> (); getHeat.callHeat(); } }
// Use this for initialization public void HandleTimedInput() { //All Classroom Tags if (currentObj.tag == "microscope") { moving = true; StartCoroutine(movesceneMS()); } else if (currentObj.tag == "periodic_table") { moving = true; StartCoroutine(movescenePT()); } else if (currentObj.tag == "tripod") { moving = true; } else if (currentObj.tag == "door") { moving = true; StartCoroutine(movesceneDoor()); } else if (currentObj.tag == "plusheat") { StartCoroutine(LerpUP()); } else if (currentObj.tag == "minusheat") { StartCoroutine(LerpDown()); } else if (currentObj.tag == "mixBackbutton") { mixEx.SetActive(false); bunsenburner.SetActive(true); microscope.SetActive(true); stand.SetActive(true); } else if (currentObj.tag == "heatBackButton") { StartCoroutine(movefromheat()); heatEx.SetActive(false); stand.SetActive(true); microscope.SetActive(true); } else if (currentObj.tag == "bunsenburner") { heatEx.SetActive(true); StartCoroutine(moveheat()); stand.SetActive(false); microscope.SetActive(false); getHeatElement getHeat = GameObject.Find("HeatElement").GetComponent <getHeatElement> (); getHeatReaction getHeatR = GameObject.Find("HeatReaction").GetComponent <getHeatReaction> (); getHeat.callHeat(); getHeatR.callHeatReaction(); } else if (currentObj.tag == "testtubestand") { mixEx.SetActive(true); microscope.SetActive(false); bunsenburner.SetActive(false); stand.SetActive(false); getElementA getA = GameObject.Find("Element A").GetComponent <getElementA> (); getElementB getB = GameObject.Find("Element B").GetComponent <getElementB> (); getA.callA(); getB.callB(); } //All Microscope scene-----------------------------> else if (currentObj.tag == "homepagebutton") { StartCoroutine(movesClassroom()); } else if (currentObj.tag == "micOptionA") { microscopeMenu.SetActive(false); } else if (currentObj.tag == "micBackbutton") { microscopeMenu.SetActive(true); } }