Пример #1
0
 private void RenderPasswordField(QuickLoginConfiguration quickLoginConfiguration)
 {
     EditorGUILayout.BeginHorizontal();
     GUILayout.Label("Password:"******"•"[0], GUILayout.MinWidth(EditorGUIUtility.fieldWidth));
     EditorGUILayout.EndHorizontal();
 }
Пример #2
0
 private void RenderEmailField(QuickLoginConfiguration quickLoginConfiguration)
 {
     EditorGUILayout.BeginHorizontal();
     GUILayout.Label("Email:");
     quickLoginConfiguration.Email = GUILayout.TextField(quickLoginConfiguration.Email, GUILayout.MinWidth(EditorGUIUtility.fieldWidth));
     EditorGUILayout.EndHorizontal();
 }
Пример #3
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);
        }
Пример #4
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);
        }