public bool WaitForResourcesLoaded(bool Wait) { if (_resourcesLoaded) return true; return ResourcesLoadedEvent.WaitOne(Wait ? Timeout.Infinite : 0); }