Esempio n. 1
0
    private static bool Pressed(KeyPress k)
    {
        switch (k)
        {
        case KeyPress.MoveLeft:
        case KeyPress.MoveRight:
            return(Input.GetButton(k.ToString()));

        default:
            return(Input.GetButtonDown(k.ToString()));
        }
    }