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