public UI CreateUI(SpriteBatch spriteBatch, PlayerEntity playerEntity) { UI res = new UI(this, spriteBatch, playerEntity); res.Template = this; return res; }
public InterfaceInteraction(UI ui, SpriteBatch spriteBatch, PlayerEntity player) : base(player) { this.spriteBatch = spriteBatch; this.Ui = ui; }
public void Add(UI ui) { if (uis.Any(u => ui.Template == u.Template)) return; ui.Load(); this.uis.Add(ui); }