new void Update() { angle += spinSpeed; spinSpeed += spinAccel; if (spinSpeed > maxSpinSpeed) { spinSpeed = maxSpinSpeed; } if (spinSpeed < 0.0f) { spinSpeed = 0.0f; } spriteQuad.transform.rotation = Quaternion.Euler(90, angle, 0); if (state == WhirlpoolState.finishing) { if (isWaitingForActionToComplete) { return; } level.fadeout(this); isWaitingForActionToComplete = true; state = WhirlpoolState.finished; } if (state == WhirlpoolState.finished) { if (isWaitingForActionToComplete) { return; } //SceneManager.LoadScene ( + level.lowerFloorName); } }