private void SetWarning(string warningMessage, Action warningAction = null) { warningWindowText.text = warningMessage; warningWindow.UnHideObject(); blocker.SetActive(true); warningClosedAction = warningAction; }
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; } }
private void SetDetailDelete(ContactDetail detail) { if (deleteButtonDisabled) { return; } deleteButtonDisabled = true; cDetail = detail; confirmDeleteWindow.UnHideObject(); EnableDisableButtons(false); }
public void OnAddDetailButtonPressed() { deleteButtonDisabled = true; EnableDisableButtons(false); addDetailWindow.UnHideObject(0.4f); }
public void OnDeleteContactButtonPressed() { confirmDeleteWindow.UnHideObject(); EnableDiableButtons(false); }