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; }
public void Destroy() { _source.Destroy(); _source = null; }
public PlayerSelect(string typeName) { _source = new TsInstance(typeName); }