Example #1
0
        public void AddComponent(Action componentFunc)
        {
            var component = new LambdaComponent(t => componentFunc())
            {
                Entity = this
            };

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

            Components.Add(component);
        }