public void FixedUpdate() { if (!doFixedUpdate) { return; } if (tiltControllerEditParams) { rotationController.AdjustPD(tiltControllerP, tiltControllerI, tiltControllerD); } cameraPivotOffset = Vector3.Lerp(cameraPivotOffset, cameraPivotOffsetTarget, Time.fixedDeltaTime * 4.0f); switch (currentState) { case KobotoState.Alive: SetMoveForceFromInput(); if (levelBoundsSet && !levelBounds.Contains(transform.position)) { Kill(KobotoDeath.Lost, null); } break; } stateTime += Time.fixedDeltaTime; }