Пример #1
0
 private void SetWarning(string warningMessage, Action warningAction = null)
 {
     warningWindowText.text = warningMessage;
     warningWindow.UnHideObject();
     blocker.SetActive(true);
     warningClosedAction = warningAction;
 }
Пример #2
0
    public void OnConfirmDetailTypeButtonPressed()
    {
        switch (selectedType)
        {
        case DetailType.Name:
            addNameWindow.UnHideObject();
            lastMover = addNameWindow;
            break;

        case DetailType.Phone:
            addPhoneWindow.UnHideObject();
            lastMover = addPhoneWindow;
            break;

        case DetailType.Email:
            addEmailWindow.UnHideObject();
            lastMover = addEmailWindow;
            break;

        case DetailType.Link:
            addLinkWindow.UnHideObject();
            lastMover = addLinkWindow;
            break;

        case DetailType.Description:
            addDescriptionWindow.UnHideObject();
            lastMover = addDescriptionWindow;
            break;
        }
    }
Пример #3
0
    private void SetDetailDelete(ContactDetail detail)
    {
        if (deleteButtonDisabled)
        {
            return;
        }
        deleteButtonDisabled = true;

        cDetail = detail;
        confirmDeleteWindow.UnHideObject();
        EnableDisableButtons(false);
    }
Пример #4
0
 public void OnAddDetailButtonPressed()
 {
     deleteButtonDisabled = true;
     EnableDisableButtons(false);
     addDetailWindow.UnHideObject(0.4f);
 }
 public void OnDeleteContactButtonPressed()
 {
     confirmDeleteWindow.UnHideObject();
     EnableDiableButtons(false);
 }