Пример #1
0
 public SelectState(Game1 game, ContentManager content)
 {
     _font = content.Load <SpriteFont>("font");
     foreach (var type in TsInstance.Types)
     {
         if (TsInstance.ObjectIsAncestor(type, "GameBase.par_character_select"))
         {
             _characterChoices.Add(new PlayerSelect(type));
         }
     }
     _game = game;
 }
Пример #2
0
 public void Destroy()
 {
     _source.Destroy();
     _source = null;
 }
Пример #3
0
 public PlayerSelect(string typeName)
 {
     _source = new TsInstance(typeName);
 }