Пример #1
0
    void Update()
    {
        if (getCameraController && tpCamera != null)
        {
            lookDirection = tpCamera.GetLookDirection();
        }

        if (enableMovement)
        {
            CalculateMovingPlatform();
            Move(inputMove.x, inputMove.y, inputJump, inputDash);
            CalculateCooldowns();
        }
    }