/// <summary> /// Raises event 'ChangeIcon' /// </summary> protected virtual void OnChangeIcon() { if (ChangeIcon != null) { ChangeIcon.Invoke(this, System.EventArgs.Empty); } }
protected override void Init() { _instance = this; base.Init(); closeBtn.onClick = OnCloseBtn; goodsMultList = transform.FindComponent <GUISingleMultList>("GoodsMultList"); view = transform.Find("GoodsListScrollView"); goodsMultList.ScrollView = view; foreach (int key in FSDataNodeTable <RoleIconAttrNode> .GetSingleton().DataNodeList.Keys) { if (key < 10014 || key == 10030) { RoleIconAttrNode a = FSDataNodeTable <RoleIconAttrNode> .GetSingleton().DataNodeList[key]; keyList.Add(a); } } }
public IEnumerable <IEvent> On(ChangeIcon command) { yield return(new IconChanged(command.ID, command.NewIcon)); }