コード例 #1
0
    public bool Check(KeyStringMethod byString, KeyCodeMethod byCode)
    {
        var lim = (keys.Count > 1 ? keys.Count - 1 : keys.Count);

        if (!KeyBinding.CheckAll(keys.GetRange(0, lim), Input.GetKey, Input.GetKey))
        {
            return(false);
        }

        if (lim < keys.Count)
        {
            return(KeyBinding.Check(keys[keys.Count - 1], byString, byCode));
        }

        return(false);
    }