public void ButtonClicked(int buttonTypeIndex) { PopupButtonType popupButtonType = (PopupButtonType)buttonTypeIndex; switch (popupButtonType) { case PopupButtonType.Cancel: _confirmPopupEvent.RaiseEvent(false); break; case PopupButtonType.Close: _closePopupEvent.RaiseEvent(); break; case PopupButtonType.Confirm: _confirmPopupEvent.RaiseEvent(true); break; default: Debug.Log("Default"); break; } }
public void SetButton(PopupButtonType _type, PopupType popupType) { _currentType = _type; _buttonText.StringReference.TableEntryReference = _currentType.ToString() + "_" + popupType.ToString(); }