Example #1
0
        internal static void Initialize(IServiceProvider serviceProvider, string rootDirectory)
        {
            SharedContentManager = new CCContentManager(serviceProvider, rootDirectory);
#if IOS || WINDOWS_PHONE8
            InitializeContentTypeReaders();
#endif
        }
Example #2
0
        /// <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
        }
Example #3
0
        /// <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();
            }
        }
Example #4
0
 internal static void Initialize(IServiceProvider serviceProvider, string rootDirectory)
 {
     SharedContentManager = new CCContentManager(serviceProvider, rootDirectory);
 }