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>(); }
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(); } }