public void ResponseMatchPlayer(ExtendedEventArgs eventArgs) { ResponseMatchPlayerEventArgs args = eventArgs as ResponseMatchPlayerEventArgs; if (args.status == 0) { Constants.USER_ID = args.user_id; Debug.Log("Successful Matchplay response : " + args.ToString()); EditorUtility.DisplayDialog("Matching Successful", "Opponent: " + args.opponent_id, "Ok"); //SceneManager.LoadScene("TestScene"); } else { Debug.Log("Match Failed"); } }
public override ExtendedEventArgs process() { ResponseMatchPlayerEventArgs args = null; if (status == 0) { args = new ResponseMatchPlayerEventArgs(); args.status = status; args.user_id = user_id; args.username = username; args.money = money; args.level = level; args.last_logout = last_logout; args.opponent_id = opponent_id; } return(args); }