예제 #1
0
 protected virtual void Awake()
 {
     Instance                = this;
     QuickAuthUi             = QuickAuthUi ?? FindObjectOfType <QuickAuthUi>();
     LoginWindow             = LoginWindow ?? FindObjectOfType <LoginUi>();
     RegisterWindow          = RegisterWindow ?? FindObjectOfType <RegisterUi>();
     PasswordResetWindow     = PasswordResetWindow ?? FindObjectOfType <PasswordResetUi>();
     EmailConfirmationWindow = EmailConfirmationWindow ?? FindObjectOfType <EmailConfirmUi>();
 }
예제 #2
0
        protected virtual void Awake()
        {
            Instance                = this;
            QuickAuthUi             = QuickAuthUi ?? FindObjectOfType <QuickAuthUi>();
            LoginWindow             = LoginWindow ?? FindObjectOfType <LoginUi>();
            RegisterWindow          = RegisterWindow ?? FindObjectOfType <RegisterUi>();
            PasswordResetWindow     = PasswordResetWindow ?? FindObjectOfType <PasswordResetUi>();
            EmailConfirmationWindow = EmailConfirmationWindow ?? FindObjectOfType <EmailConfirmUi>();

            Msf.Client.Auth.LoggedIn  += OnLoggedIn;
            Msf.Client.Auth.LoggedOut += OnLoggedOut;

            if (Msf.Client.Auth.IsLoggedIn)
            {
                OnLoggedIn();
            }
        }