Exemplo n.º 1
0
 public CollisionComponentBuilder Init(Entity entity, float radius)
 {
     _collisionComponent = new CollisionComponent(entity, radius);
     return(this);
 }
 private static void AddCollisionComponent(CollisionComponent collisionComponent)
 {
     _colisionComponents.Add(collisionComponent);
 }
Exemplo n.º 3
0
 public CollisionComponentBuilder Init(Entity entity, Vector2 size)
 {
     _collisionComponent = new CollisionComponent(entity, (int)size.X, (int)size.Y);
     return(this);
 }