public void ResponseRaceInit(ExtendedEventArgs eventArgs) { ResponseRaceInitEventArgs args = eventArgs as ResponseRaceInitEventArgs; if (args.status == 0) { Application.LoadLevel("RRReadyScene"); } else { Join(); } }
public override ExtendedEventArgs process() { ResponseRaceInitEventArgs args = null; args = new ResponseRaceInitEventArgs(); args.status = status; if (status == 0) { //battle start, stop sending battle request Debug.Log("response received from server"); } else if (status == 1) { //battle not start, continue sending battle request } return(args); }