public void DispatchEvent(LEvent e) { if (_map.ContainsKey(e.type) == false) { return; } List <EventDelegate> list = _map[e.type]; int count = list.Count; for (int i = 0; i < count; i++) { list[i](e); } }
private void OnSettingMainPlayer(LEvent e) { _main = e.data as Player; }
private void OnReceive(LEvent e) { _eList.Add(e); }
private void OnRemoveItem(LEvent e) { _moveList.Remove((IMove)e.data); }
private void OnAddItem(LEvent e) { _moveList.Add((IMove)e.data); }