private void OnPlayerDisconnection(byte i_PlayerId) { if (m_GeneralBehaviours != null) { for (int index = 0; index < m_GeneralBehaviours.Count; ++index) { TrueSyncManagedBehaviour bh = m_GeneralBehaviours[index]; bh.OnPlayerDisconnection((int)i_PlayerId); } } foreach (List <TrueSyncManagedBehaviour> behaviors in m_BehavioursPerPlayer.Values) { for (int index = 0; index < behaviors.Count; ++index) { TrueSyncManagedBehaviour bh = behaviors[index]; bh.OnPlayerDisconnection((int)i_PlayerId); } } }
void OnPlayerDisconnection(byte playerId) { TrueSyncManagedBehaviour.OnPlayerDisconnection(generalBehaviours, behaviorsByPlayer, playerId); }