Exemplo n.º 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;
                }
            }
        }
Exemplo n.º 2
0
 void Start()
 {
     activeSolution = originalSolution;
     generateRacers();
 }