Пример #1
0
        void defaultFirstCharTimer_Tick(object sender, EventArgs e)
        {
            try
            {
                loginNextCharTimer.Stop();

                if (!String.IsNullOrEmpty(nextCharacter))
                {
                    loginCharacterTools.LoginCharacter(nextCharacter);
                    nextCharacter = null;
                }
                else if (nextCharByInt >= 0 && nextCharByInt <= 10)
                {
                    loginCharacterTools.LoginByIndex(nextCharByInt);
                    nextCharByInt = -1;
                }
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }