Ejemplo n.º 1
0
    void FixedUpdate()
    {
        Tuple <float, Dictionary <string, bool> > inputResult = inputComponent.GetInput(inputs);

        moving = inputResult.Item1;
        inputs = inputResult.Item2;
        if (canMove)
        {
            physicsComponent.ProcessPlayerInputs(moving, inputs, facingRight);
            facingRight = graphicsComponent.UpdateSprite(facingRight, moving);
        }
    }