UnityEditor.AboutWindow.SecretCodeHasBeenTyped C# (CSharp) Method

SecretCodeHasBeenTyped() private method

private SecretCodeHasBeenTyped ( string code, int &characterProgress ) : bool
code string
characterProgress int
return bool
        private bool SecretCodeHasBeenTyped(string code, ref int characterProgress)
        {
            if (((characterProgress < 0) || (characterProgress >= code.Length)) || (code[characterProgress] != Event.current.character))
            {
                characterProgress = 0;
            }
            if (code[characterProgress] == Event.current.character)
            {
                characterProgress++;
                if (characterProgress >= code.Length)
                {
                    characterProgress = 0;
                    return true;
                }
            }
            return false;
        }