IEnumerator InternalStun() { FirstPersonController controller = GetComponent <FirstPersonController>(); if (controller != null) { controller.DisableMovement(); float timer = 0; Vector3 orgPos = transform.position; while (timer < 3) { timer += Time.deltaTime; transform.position = orgPos + Random.insideUnitSphere; yield return(null); } controller.EnableMovement(); } }
private void CutOffLimb(Limbs limb) { FpsControllerScript.DisableMovement(); StartPutLimbIntoReceptacleAnimation(limb); }