public static void TransitionToScreen(string screenName, System.Action <FlatRedBall.Screens.Screen> screenCreatedCallback = null)
 {
     FlatRedBall.Screens.Screen currentScreen = FlatRedBall.Screens.ScreenManager.CurrentScreen;
     currentScreen.IsActivityFinished = true;
     currentScreen.NextScreen         = typeof(LoadingScreen).FullName;
     mNextScreenToLoad = screenName;
     nextCallback      = screenCreatedCallback;
 }
Example #2
0
        private void CustomDestroy()
        {
            currentScreen = null;

            SpriteManager.RemoveAllParticleSprites();

            bubbles.Clear();
        }
Example #3
0
        /// <summary>
        /// Initialization logic which is execute only one time for this Entity (unless the Entity is pooled).
        /// This method is called when the Entity is added to managers. Entities which are instantiated but not
        /// added to managers will not have this method called.
        /// </summary>
        private void CustomInitialize()
        {
            bubbles = new List <Sprite>();

            currentScreen = FlatRedBall.Screens.ScreenManager.CurrentScreen;

            CurrentBubbleEmitterType = BubbleEmitterType.Geyser;

            SpawnOffset = 0f;

            textureForBubbles = (Texture2D)GetFile("anflogaSprites");
            animations        = (AnimationChainList)GetFile("AnimationChainListFile");
        }