Example #1
0
        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;
                }
            }
        }
Example #2
0
 void Start()
 {
     activeSolution = originalSolution;
     generateRacers();
 }