void OnGUI() { GUI.Label(new Rect(100, 100, 2000, 40), "Execution Speed: " + delta); if(GUI.Button(new Rect(100,120, 350, 80),"active solution:\n"+ activeSolution.ToString())) { if (activeSolution == originalSolution) { activeSolution = proposedSolution; } else { activeSolution = originalSolution; } } }
void Start() { activeSolution = originalSolution; generateRacers(); }