// Start is called before the first frame update
 void Start()
 {
     SignUpButton.onClick.AddListener(OnSignUpClick);
     colorizer = new TMPFieldColorizer(colorizerData);
     colorizer.AddOnSelectHandler(UsernameInput);
     colorizer.AddOnSelectHandler(EmailInput);
     colorizer.AddOnSelectHandler(PasswordInput);
     colorizer.AddOnSelectHandler(PasswordConfirmInput);
 }
예제 #2
0
    private IEnumerator InitializeStart()
    {
        yield return(new WaitForEndOfFrame());

        autoLoginData = new AutoLoginData();
        //setting up login panel
        SignInButton.onClick.AddListener(OnSignInClick);
        colorizer = new TMPFieldColorizer(colorizerData);
        colorizer.AddOnSelectHandler(UsernameInput);
        colorizer.AddOnSelectHandler(PasswordInput);
        //Checking if AutoLogin available. If so, it will auto login
        //CheckAutoLogin();

        AddToggleHandler();
    }