private void OnLevelWasLoaded(int newLevel)
{
// print ("OnLevelWasLoaded("+newLevel+")");
if (Application.loadedLevelName == "Leap_Project") {
Light light = (Light) GameObject.Find ("NewSpotLight/light").light;
if (currentTask == Task.TranslationRotation) {
light.intensity = (float) currentLightIntensity;
} else {
light.intensity = 1.5f;
}
if (currentTrial >= 0) {
SetupLevel(trialList[currentTrial]/tasksPerTrial);
print ("setting up level " + trialList[currentTrial]/tasksPerTrial);
} else if (currentTrial < 0) {
SetupLevel (12);
}
}
}