ACR_ChooserCreator.Waiter.WaitForResources C# (CSharp) Method

WaitForResources() public static method

public static WaitForResources ( CLRScriptBase script, IBackgroundLoadedResource resource ) : void
script CLRScriptFramework.CLRScriptBase
resource IBackgroundLoadedResource
return void
        public static void WaitForResources(CLRScriptBase script, IBackgroundLoadedResource resource)
        {
            if (resource.WaitForResourcesLoaded(false) == true)
            {
                DrawListBox(script, (resource as IDrawableList).ListBox);
                return;
            }
            else
            {
                // TODO: Display the 'thinking' animation.
                script.DelayCommand(0.5f, delegate() { WaitForResources(script, resource); });
                return;
            }
        }