// Use this for initialization void Start() { userNodeDic = new Dictionary <string, UserNode>(); AddMessage(SSSocketTool.TransMsgDefToStr(NetProtoType.MseEnterGame), mseEnterGameProtoEventHandler); AddMessage(SSSocketTool.TransMsgDefToStr(NetProtoType.MseSceneObjAppear), mseSceneObjAppearProtoEventHandler); AddMessage(SSSocketTool.TransMsgDefToStr(NetProtoType.MseSceneObjAppearList), mseSceneObjAppearListProtoEventHandler); AddMessage(SSSocketTool.TransMsgDefToStr(NetProtoType.MseSceneObjMove), mseSceneObjMoveProtoEventHandler); AddMessage(SSSocketTool.TransMsgDefToStr(NetProtoType.MseSceneObjMoveList), mseSceneObjMoveListProtoEventHandler); AddMessage(SSSocketTool.TransMsgDefToStr(NetProtoType.MseSceneObjDisappear), mseSceneObjDisappearProtoEventHandler); AddMessage(SSSocketTool.TransMsgDefToStr(NetProtoType.MseSceneObjDisappearList), mseSceneObjDisappearListProtoEventHandler); sendEnterGame(); keyControl = new KeyControl(); keyControl.Reset(); }