public override ExtendedEventArgs process() { ResponseLvUpEventArgs args = null; if (status == 0) { args = new ResponseLvUpEventArgs(); args.status = status; args.user_id = user_id; args.username = username; args.money = money; args.level = level; args.last_logout = last_logout; } return(args); }
public void responseLvUp(ExtendedEventArgs eventArgs) { Debug.Log("called responseAddMoney function"); ResponseLvUpEventArgs args = eventArgs as ResponseLvUpEventArgs; if (args.status == 0) { Constants.USER_ID = args.user_id; Debug.Log("Successful LvUp response : " + args.level); EditorUtility.DisplayDialog("LvUp Successful", "You have successfully LvUp in.\nClick Ok to continue execution and see responses on console", "Ok"); //SceneManager.LoadScene("TestScene"); } else { Debug.Log("Addmoney Failed"); } }