Beispiel #1
0
 private void Update()
 {
     if (isPlaying)
     {
         if (Time.time - lastTime > speedSlider.maxValue - speedSlider.value)
         {
             string option = dropDownValue.captionText.text;
             if (option == "Life")
             {
                 autoManager.Life();
             }
             else if (option == "Seeds")
             {
                 autoManager.Seeds();
             }
             else if (option == "Highlife")
             {
                 autoManager.HighLife();
             }
             else if (option == "Day/Night")
             {
                 autoManager.DayAndNight();
             }
             else if (option == "Diamoeba")
             {
                 autoManager.Diamoeba();
             }
             else if (option == "Flock")
             {
                 autoManager.Flock();
             }
             else if (option == "Maze")
             {
                 autoManager.Maze();
             }
             else if (option == "Mazectric")
             {
                 autoManager.Mazectric();
             }
             else if (option == "Gems")
             {
                 autoManager.Gems();
             }
             else if (option == "Flakes")
             {
                 autoManager.Flakes();
             }
             else if (option == "Long Life")
             {
                 autoManager.LongLife();
             }
             else if (option == "Stains")
             {
                 autoManager.Stains();
             }
             lastTime = Time.time;
             numGenerations++;
         }
     }
     generationCountDisplay.text = numGenerations.ToString();
 }