public UWB_XNASpotLight CreateSpotLight()
 {
     if (numLights < MAX_LIGHTS)
     {
         UWB_XNASpotLight tempLight = new UWB_XNASpotLight(m_LightingEffect.Parameters["lights"].Elements[numLights]);
         IncrementLightCount();
         return tempLight;
     }
     else
     {
         UWBGL_XNA_Lib.UWB_Utility.echoToStatusArea("Failed to create light. Max lights reached.");
         return null;
     }
 }
 public UWB_XNASpotLight CreateSpotLight()
 {
     if (numLights < MAX_LIGHTS)
     {
         UWB_XNASpotLight tempLight = new UWB_XNASpotLight(m_LightingEffect.Parameters["lights"].Elements[numLights]);
         IncrementLightCount();
         return(tempLight);
     }
     else
     {
         UWBGL_XNA_Lib.UWB_Utility.echoToStatusArea("Failed to create light. Max lights reached.");
         return(null);
     }
 }