void Clicked() { Ray ray = cam.ScreenPointToRay(Input.mousePosition); RaycastHit hit = new RaycastHit(); if (Physics.Raycast(ray, out hit)) { Debug.Log(hit.collider.gameObject.name); if (hit.collider.gameObject.name == "Hard") { ggm.mode = 3; intro_m.Action(); } if (hit.collider.gameObject.name == "Medium") { ggm.mode = 2; intro_m.Action(); } else if (hit.collider.gameObject.name == "Easy") { ggm.mode = 1; intro_m.Action(); } else if (hit.collider.gameObject.name == "Quit") { Application.Quit(); } } }