private IEnumerator ShakeCamera(float shake_time, float shake_amount) { time = shake_time; amount = shake_amount; while (time > 0) { gameObject.transform.position = originPosition + new Vector3(Random.value * amount, 0, 0); time -= Time.deltaTime; yield return(null); } gameObject.transform.position = originPosition; // no think Time.timeScale = 1; Time.fixedDeltaTime = 0.02f; uiController.BloodScreenOFF(); }