/// <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"); }
public static string ToFiendlyName(this BubbleEmitterType emitterType) { string toReturn = string.Empty; switch (emitterType) { case BubbleEmitterType.Geyser: toReturn = nameof(BubbleEmitterType.Geyser); break; case BubbleEmitterType.Sub: toReturn = nameof(BubbleEmitterType.Sub); break; } return(toReturn); }