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