public Text(EntityState stateref, IComponent parent, string name, SpriteFont font, string text, Vector2 position) : base(stateref,parent, name) { Body = new Body(this, "Body", position); AddComponent(Body); Physics = new Physics(this, "Physics"); AddComponent(Physics); TextRender = new TextRender(this, "TextRender", font, text); AddComponent(TextRender); }
public Text(EntityState stateref, IComponent parent, string name) : base(stateref, parent, name) { Body = new Body(this, "Body"); AddComponent(Body); Physics = new Physics(this, "Physics"); AddComponent(Physics); TextRender = new TextRender(this, "TextRender"); AddComponent(TextRender); }