public void EndPhase2() { MehmetStuff.GetComponent <Phase2_Lerp_Mehmet>().enabled = false; SelimStuff.GetComponent <Phase2_Lerp_Selim>().enabled = false; selimDestination.GetComponent <Selim_Destination>().enabled = false; coffeDestination.GetComponent <Coffee_Machine_Destination>().enabled = false; canvasStuff.SetActive(false); phase3_canvas.SetActive(true); }
private void OnTriggerEnter(Collider other) { MehmetStuff.GetComponent <Phase2_Lerp_Mehmet>().enabled = false; SelimStuff.GetComponent <Phase2_Lerp_Selim>().enabled = false; selimDestination.GetComponent <Selim_Destination>().enabled = false; coffeDestination.GetComponent <Coffee_Machine_Destination>().enabled = false; canvasStuff.SetActive(false); phase3_canvas.SetActive(true); }