private void OnGameEnded()
        {
            if (m_GeneralBehaviours != null)
            {
                for (int index = 0; index < m_GeneralBehaviours.Count; ++index)
                {
                    TrueSyncManagedBehaviour bh = m_GeneralBehaviours[index];
                    bh.OnGameEnded();
                }
            }

            foreach (List <TrueSyncManagedBehaviour> behaviors in m_BehavioursPerPlayer.Values)
            {
                for (int index = 0; index < behaviors.Count; ++index)
                {
                    TrueSyncManagedBehaviour bh = behaviors[index];
                    bh.OnGameEnded();
                }
            }
        }
Ejemplo n.º 2
0
 void OnGameEnded()
 {
     TrueSyncManagedBehaviour.OnGameEnded(generalBehaviours, behaviorsByPlayer);
     instance.scheduler.UpdateAllCoroutines();
 }