Ejemplo n.º 1
0
    private bool GetTouchInputUp(KeyCode key)
    {
        switch (key)
        {
        case KeyCode.A:
            return(leftMoveData.GetKeyUp());

        case KeyCode.D:
            return(rightMoveData.GetKeyUp());

        case KeyCode.Space:
            return(leftJumpData.GetKeyUp() || rightJumpData.GetKeyUp());
        }
        return(false);
    }