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;
}
}