void Update() { if (stopping) { return; } transform.Translate(0, 0, -30 * Time.deltaTime * Time.timeScale); var z = transform.position.z; if (z < -20) { Hide(); } if (isTarget && !isCorrectJudged && z < 10) { if (IsCorrect(transform.position, size / 3)) { resultReceiver.Perfect(); } else if (IsCorrect(transform.position, size)) { resultReceiver.Good(); } else { resultReceiver.Miss(); } isCorrectJudged = true; } }