예제 #1
0
        protected override void LoadContent()
        {
            SpriteBatch = new SpriteBatch(GraphicsDevice);

#if ANDROID
            Assets.SetActivity(AndroidActivity);
#endif

            Assets.Load(Content, GraphicsDevice);

            SpriteBatchManager.LoadContent();
            CloudManager.LoadContent();
            MusicManager.LoadContent();
            PerformanceManager.LoadContent();

            var gradientBackground = new GradientBackground(this);
            var level = BackgroundLevel.Level1;
            gradientBackground.ChangeGradientColors(GameConfig.BackgroundGradients[level].Item1, GameConfig.BackgroundGradients[level].Item2);
            SpriteBatchManager.Background = gradientBackground;
        }