示例#1
0
    public static NetBackMgr GetInst()
    {
        if (Ins == null)
        {
            Ins = new NetBackMgr();

            //TODO Tick目前并没有注册到主工程,以后用到Net模块要记得处理这步,直接把Tick的主循环放到GameMgr中貌似就可以
            Tick.AddUpdate(NetBackMgr.AnalysisImportantCache4RecMsg);
            //轮询接收消息
            Tick.AddUpdate(NetBackMgr.AnalysisCache4RecMsg);
        }
        return(Ins);
    }