public override void performAsync() { WWWBasedHTTPFactory wWWBasedHTTPFactory = (WWWBasedHTTPFactory)getClient().getFactory(); MonoBehaviour context = wWWBasedHTTPFactory.getContext(); context.StartCoroutine(request()); }
public static WWWBasedHTTPFactory getFactory() { if (factory == null) { if (_context == null) { throw new HTTPException("Context (MonoBehaviour) must be set prior to requesting a WWW based factory."); } factory = new WWWBasedHTTPFactory(_context); } return(factory); }