//static //objs public static LogicalObject CreateAsteroid(Vector2 pos) { var obj = Prefabs.Asteroid(); obj.position = pos; RandomShape(obj.PolyRenderer); obj.SpriteDrawer.PartActive = !Settings.PolyMode; obj.PolyRenderer.PartActive = Settings.PolyMode; Objects.Add(obj); return(obj); }