private void PaddleRightStart() { // Cannot paddle right if currently paddling left if (kayakState == KayakState.PADDLE_LEFT) { return; } // Also cannot paddle right if leaning left if (leanState == LeanState.LEAN_LEFT) { return; } kayakState = KayakState.PADDLE_RIGHT; paddleTime = Time.time; }
private void StopPaddling() { kayakState = KayakState.IDLE; paddleTime = 0f; }