Beispiel #1
0
        public void Init(IComponent owner)
        {
            owner.Transform.Position.Set(100, 100);

            var renderer = _rendererFactory(InitialSize);

            owner.AppendBehavior(renderer);

            var rBody = new RigidBody(new Vector2()
            {
                X = 20, Y = 10
            });

            owner.AppendBehavior(rBody);
        }