internal static void Initialize(IServiceProvider serviceProvider, string rootDirectory) { SharedContentManager = new CCContentManager(serviceProvider, rootDirectory); #if IOS || WINDOWS_PHONE8 InitializeContentTypeReaders(); #endif }
/// <summary> /// Loads the content for the game and then calls ApplicationDidFinishLaunching. /// </summary> protected override void LoadContent() { CCContentManager.Initialize(Game.Content.ServiceProvider, Game.Content.RootDirectory); base.LoadContent(); ApplicationDidFinishLaunching(); #if ANDROID CCDirector.SharedDirector.DirtyLabels(); #endif }
/// <summary> /// Loads the content for the game and then calls ApplicationDidFinishLaunching. /// </summary> protected override void LoadContent() { if (!_initialized) { CCContentManager.Initialize(Game.Content.ServiceProvider, Game.Content.RootDirectory); base.LoadContent(); ApplicationDidFinishLaunching(); _initialized = true; } else { base.LoadContent(); } }
internal static void Initialize(IServiceProvider serviceProvider, string rootDirectory) { SharedContentManager = new CCContentManager(serviceProvider, rootDirectory); }