AddFocusDelegate() public method

Adds a delegate to be called when the field receives the focus as determined by the customFocusEvent setting.
public AddFocusDelegate ( FocusDelegate del ) : void
del FocusDelegate The delegate to be called.
return void
コード例 #1
0
    // Use this for initialization
    void Start()
    {
        accountSettingsPanel.transitions.list[0].AddTransitionStartDelegate(AccountSettingsLoad);

        dayField.AddValidationDelegate(DateFieldValidation);
        monthField.AddValidationDelegate(DateFieldValidation);
        yearField.AddValidationDelegate(DateFieldValidation);
        dayField.AddFocusDelegate(ClearText);
        monthField.AddFocusDelegate(ClearText);
        yearField.AddFocusDelegate(ClearText);
        firstNameField.AddFocusDelegate(ClearText);
        lastNameField.AddFocusDelegate(ClearText);
        countryField.AddFocusDelegate(ClearText);
        changeEmailNewMailField.AddFocusDelegate(ClearText);

        fb_account = new GameFacebook(HandleLinkFacebook);
    }