protected void Select_Event(object sender, DirectEventArgs e) { if (TagSelect != null) { TagSelect.Invoke(sender, new TagSelect_EventArgs(e.ExtraParams)); } }
public void OnBtnState(int page) { ShowNextPage(page); if (_TagSelectCallBack != null) { _TagSelectCallBack.Invoke(page); } }
public void OnToggleOn(bool isOn) { if (!isOn) { return; } int page = -1; for (int i = 0; i < _Tags.Count; ++i) { if (_Tags[i].isOn) { page = i; break; } } if (page < 0) { return; } for (int i = 0; i < _TagPanels.Count; ++i) { if (i == page) { _TagPanels[i].SetActive(true); } else { _TagPanels[i].SetActive(false); } } if (_TagSelectCallBack != null) { _TagSelectCallBack.Invoke(page); } }