/// <summary> /// Start coroutine to load assetbundle /// </summary> /// <param name="notification"></param> public override void Execute(INotification notification) { DebugLogger.Log("RequestsProcessQueueCommand.cs::Execute"); // Get the FileDownloadSystemProxy fileDownloadSystemProxy = Facade.RetrieveProxy(FileDownloadProxy.NAME) as FileDownloadProxy; fileDownloadSystemProxy.IsQueueProcessing = true; ProcessNextItemInQueue(); }
/// <summary> /// Start coroutine to load assetbundle /// </summary> /// <param name="notification"></param> public override void Execute(INotification notification) { // Get the FileDownloadSystemProxy fileDownloadSystemProxy = Facade.RetrieveProxy(FileDownloadProxy.NAME) as FileDownloadProxy; // Get the bundle VO FileDownloadVO fileDownloadVO = notification.Body as FileDownloadVO; // Add the VO to queue fileDownloadSystemProxy.AddItemToQueue(fileDownloadVO); // Request process queue if auto AND is not already processing if (fileDownloadVO.autoProcessQueue && !fileDownloadSystemProxy.IsQueueProcessing) { SendNotification(FileDownloadNote.REQUEST_PROCESS_QUEUE); } }