//-------------------------------------- // PUBLIC METHODS //-------------------------------------- public void AddAction(AlertActionType type, string title, AlertPopupAction callback) { if (actions.Count >= MAX_ACTIONS) { Debug.LogWarning("Action NOT added! Actions limit exceeded"); } else if (actions.ContainsKey(title) || actionIdentifiers.ContainsKey(type)) { Debug.LogWarning("Action NOT added! Action with this Title or Type already exists"); } else { actionIdentifiers.Add(type, title); actions.Add(title, callback); } }
public void AddDismissListener(AlertPopupAction callback) { dismissCallback = callback; }