private void Update() { if (lerp) { LerpToNode(); } Inputs(); waitingToCollide -= Time.deltaTime; if (transform.position.x + cameraXDis > _ropeGenerator.lastRopeSpawnedPos.x) { _ropeGenerator.SpawnRope(); spawnedRopes = true; } if (doMortal) { countMortal += Time.deltaTime; if (countMortal > _playerAnimations.mortalClip.length) { _playerAnimations.ChangeToFlying(); countMortal = 0; doMortal = false; } } if (transform.position.y < maxYPos) { Die(); } if (isHoldingNumber == 999) { score += scoreMod * Time.deltaTime; } CheckSpawnCollectable(); }