public SvrEvent GetSvrEvent(int groupid) { SvrEvent e = null; if (DicSvrEvent.TryGetValue(groupid, out e) == true) { e = DicSvrEvent[groupid]; } return(e); }
/// <summary> /// Update this instance. /// </summary> //--------------------------------------------------------------------------------------------- void Update() { SvrEvent frameEvent = new SvrEvent(); while (plugin.PollEvent(ref frameEvent)) { Debug.LogFormat("SvrEvent: {0}", frameEvent.eventType.ToString()); for (int i = 0; i < eventListeners.Count; i++) { eventListeners [i].OnSvrEvent(frameEvent); } } }
/// <summary> /// Update this instance. /// </summary> //--------------------------------------------------------------------------------------------- void Update() { SvrEvent frameEvent = new SvrEvent(); while (plugin.PollEvent(ref frameEvent)) { for (int i = 0; i < eventListeners.Count; i++) { eventListeners [i].OnSvrEvent(frameEvent); } } if (Input.GetKeyDown(KeyCode.LeftShift)) { } }
public void SetSvrEventAdd(int groupid, SvrEvent e) { DicSvrEvent[groupid] = e; }