// Update is called once per frame void Update() { if (DM.whetherNextRound()) { DM.emitDisk(RD.getNextRoundNum(), RD.getNextRoundColor(), RD.getNextRoundSpeed()); SR.nextRound(); return; } if (Input.GetMouseButtonDown(0)) { Vector3 mp = Input.mousePosition; Camera ca = mainCamera.GetComponent <Camera> (); Ray ray = ca.ScreenPointToRay(Input.mousePosition); RaycastHit hit; if (Physics.Raycast(ray, out hit)) { if (hit.collider.gameObject.tag == "Disk") { DM.shutDisk(hit.collider.gameObject); SR.hitOne(); } } } }