Example #1
0
    void Start()
    {
        netMangaer = NetMangaer.Ins;
        netMangaer.Init(serverIp, port, 5);

        netMangaer.receivedSucceed += PushRecvMsg;
        netMangaer.sendSucceed     += PushSendMsg;
    }
Example #2
0
 void Start()
 {
     netMangaer = NetMangaer.Ins;
     netMangaer.Init(serverIp, port, 5);
     netMangaer.connectSucceed  += ConnectCallBack;
     netMangaer.receivedSucceed += MessageHandle;
     netMangaer.ConnectServer();
 }