Пример #1
0
 public void RequestShotData()
 {
     if (ShotCount < s_MaxShots)
     {
         ShotDataReady?.Invoke(m_Shots[ShotCount++]);
         m_ScoreUpdated = false;
     }
     else
     {
         EvolutionRequest?.Invoke();
     }
 }
Пример #2
0
 public void RequestShotData()
 {
     ShotCount++;
     if (m_Evolve)
     {
         m_Evolve = !m_Evolve;
         EvolutionRequest?.Invoke();
     }
     else
     {
         m_Evolve = !m_Evolve;
         ShotDataReady?.Invoke(m_ShotData);
     }
 }