Exemple #1
0
 private protected override void Deactivated()
 {
     _spriteFont = null;
     Engine.SpriteSystem.RemoveSprite(Scene, this);
 }
Exemple #2
0
 private protected override void Activated()
 {
     Engine.SpriteSystem.AddSprite(Scene, this);
     _spriteFont = Scene.Assets.FirstOrDefault(a => a.Name == AssetName) as Asset <SpriteFont>;
 }