/// <summary> /// 释放无用资源 /// </summary> private void Release() { Reset(); currentNode = null; packetHandler = null; lockstepHandler = null; beginHandler = null; endHandler = null; runFrameCount = 0; }
/// <summary> /// 添加监听帧包委托 /// </summary> /// <param name="handler">Handler.</param> public void AddListennerPacket(RunPacketHandler handler) { packetHandler = packetHandler == null ? handler : packetHandler + handler; }