예제 #1
0
 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;
 }
예제 #2
0
파일: Bubbles.cs 프로젝트: vchelaru/Anfloga
        private void CustomDestroy()
        {
            currentScreen = null;

            SpriteManager.RemoveAllParticleSprites();

            bubbles.Clear();
        }
예제 #3
0
파일: Bubbles.cs 프로젝트: vchelaru/Anfloga
        /// <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");
        }