             objectNode.position = GetRandomPosition();
 
         StaticModel@ object = objectNode.CreateComponent("StaticModel");
-        object.visible = false;
+        object.enabled = false;
         objects.Push(object);
     }
     

void EnableLights()
{
    for (uint i = 0; i < lights.length; ++i)
        lights[i].visible = i < numLights;
}

void EnableObjects()
{
    for (uint i = 0; i < objects.length; ++i)
        objects[i].visible = i < numObjects;
}

void RandomizePositions()

        if (color.r == 0.5 && color.g == 0.5 && color.b == 0.5)
            color = Color(1, 1, 1);

        light.enabled = false;
        light.range = 2.0;
        light.color = color;
        light.specularIntensity = 1.0;
