Пример #1
0
 public void Send(ByteBuffer byteBuffer)
 {
     if (USE_FAKE_SERVER)
     {
         FakeServer.GetInstance().FakeReceiveMsg(byteBuffer);
     }
     else
     {
         srvConn.Send(byteBuffer);
     }
 }
Пример #2
0
 void BindView()
 {
     StartBtn = transform.Find("Button").GetComponent <Button>();
     StartBtn.onClick.AddListener(delegate()
     {
         if (NetManager.USE_FAKE_SERVER)
         {
             FakeServer.GetInstance().StartGame();
         }
         else
         {
             GameMain.GetInstance().netManager.TestConnect();
             GameMain.GetInstance().netManager.SendLoginReq();
         }
     });
 }