public void Send(ByteBuffer byteBuffer) { if (USE_FAKE_SERVER) { FakeServer.GetInstance().FakeReceiveMsg(byteBuffer); } else { srvConn.Send(byteBuffer); } }
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(); } }); }