ACR_ChooserCreator.Navigator.WaitForResourcesLoaded C# (CSharp) Method

WaitForResourcesLoaded() public method

Wait for resources to become available.
public WaitForResourcesLoaded ( bool Wait ) : bool
Wait bool Supplies true to perform a blocking wait, else /// false to return immediately with the current availability status. ///
return bool
        public bool WaitForResourcesLoaded(bool Wait)
        {
            if (_resourcesLoaded) return true;
            return ResourcesLoadedEvent.WaitOne(Wait ? Timeout.Infinite : 0);
        }

Usage Example

 public static void WaitForNavigator(CLRScriptBase script, Navigator nav)
 {
     if (nav.WaitForResourcesLoaded(false) == true)
     {
         DrawNavigatorCategory(script, nav.bottomCategory);
         return;
     }
     else
     {
         script.SendMessageToPC(script.OBJECT_SELF, "loading...");
         script.DelayCommand(0.5f, delegate() { WaitForNavigator(script, nav); });
         return;
     }
 }
All Usage Examples Of ACR_ChooserCreator.Navigator::WaitForResourcesLoaded