/// <summary>
 /// Callback from bird
 /// </summary>
 /// <param name="bird"></param>
 public override void BirdOver(GenomeControlBird bird)
 {
     m_weightOptimizer.BirdOver(bird);
     if (m_weightOptimizer.AllDead)
     {
         ResetGame();
     }
 }
Exemplo n.º 2
0
        public override void BirdOver(GenomeControlBird bird)
        {
            bool allOver = true;

            for (int i = 0; i < m_weightOptimizers.Count; i++)
            {
                m_weightOptimizers[i].BirdOver(bird);
                if (!m_weightOptimizers[i].AllDead)
                {
                    allOver = false;
                }
            }

            if (allOver)
            {
                m_gameStartTime = Time.unscaledTime;
                ResetGame();
            }
        }
Exemplo n.º 3
0
 public abstract void BirdOver(GenomeControlBird bird);