public void AddComponent(Action componentFunc) { var component = new LambdaComponent(t => componentFunc()) { Entity = this }; Components.Add(component); }
public void AddComponent(Action <GameTime> componentFunc) { var component = new LambdaComponent(componentFunc) { Entity = this }; Components.Add(component); }