Пример #1
0
        private IEnumerator WaitFrame()
        {
            yield return(null);

            var loginWindow = UserInterfaceContainer.Instance.Get <LoginWindow>().AssertNotNull();

            loginWindow.Email    = QuickLoginConfiguration.GetInstance().Email;
            loginWindow.Password = QuickLoginConfiguration.GetInstance().Password;

            Destroy(gameObject);
        }
Пример #2
0
        private IEnumerator WaitFrameBeforeDestroy()
        {
            yield return(null);

            var quickLoginConfiguration = QuickLoginConfiguration.GetInstance();

            if (quickLoginConfiguration != null)
            {
                var loginWindow = FindObjectOfType <LoginWindow>();
                if (loginWindow != null)
                {
                    loginWindow.Email    = quickLoginConfiguration.Email;
                    loginWindow.Password = quickLoginConfiguration.Password;
                }
            }

            Destroy(gameObject);
        }