예제 #1
0
        public static void StartWWW <DataType>(MonoBehaviour scheduler, string url, OnWWWHandler <DataType> onWWWHandler, float time, int retryCount, params object[] callbackArgs) where DataType : IWWWDataType, new()
        {
            WWWQuery handler = new WWWQuery();

            handler.RetryCount = retryCount > 0 ? retryCount : 1;
            scheduler.StartCoroutine(handler.StartWWW_Internal <DataType>(scheduler, url, onWWWHandler, time, callbackArgs));
        }
예제 #2
0
 public static void StartWWW <DataType>(string url, WWWQuery.OnWWWHandler <DataType> onWWWHandler, float time, int retryCount = 0, params object[] callbackArgs) where DataType : IWWWDataType, new()
 {
     WWWQuery.StartWWW <DataType>(Instance, url, onWWWHandler, time, retryCount, callbackArgs);
 }
예제 #3
0
 public static void StartWWW(string url, WWWQuery.OnWWWHandler <WWWTexture2DData> onWWWHandler, float time = 10.0f, int retryCount = 0, params object[] callbackArgs)
 {
     WWWQuery.StartWWW <WWWTexture2DData>(Instance, url, onWWWHandler, time, retryCount, callbackArgs);
 }