private void getTopPlayers() { NetworkManager.Send( TopListProtocol.Prepare(), ProcessTopList ); }
public void ProcessLogin(NetworkResponse response) { ResponseLogin args = response as ResponseLogin; if (args.status == 0) { GameState.account = args.account; NetworkManager.Send( TopListProtocol.Prepare(), ProcessTopList ); NetworkManager.Send( PlayerSelectProtocol.Prepare(0), ProcessPlayerSelect ); CW.NetworkManager.Send( CW.PlayerSelectProtocol.Prepare(0), CW_ProcessPlayerSelect ); } else { Debug.Log("login failed, server message = " + args.status); //mainObject.GetComponent<Main>().CreateMessageBox("Login Failed"); } }