示例#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);
 }