public void ResponseLogin(ExtendedEventArgs eventArgs) { ResponseLoginEventArgs args = eventArgs as ResponseLoginEventArgs; if (args.status == 0) { Constants.USER_ID = args.user_id; } else { Debug.Log("Login Failed"); } }
public void ResponseGameState(ExtendedEventArgs eventArgs) { ResponseLoginEventArgs args = eventArgs as ResponseLoginEventArgs; if (args.status == 0) { Constants.USER_ID = args.user_id; } else { Debug.Log("Response GameState Failed"); // Don't know what comment should be made here } }
public override ExtendedEventArgs process() { ResponseLoginEventArgs args = null; if (status == 0) { args = new ResponseLoginEventArgs(); args.status = status; args.user_id = user_id; args.username = username; args.player_money = player_money; args.player_level = player_level; //args.last_logout = last_logout; } return(args); }