private void OnFirstPersonEnabledChanged(bool firstPersonEnabled)
 {
     if (_currentSpawnedPlayerAvatar == null)
     {
         return;
     }
     AvatarLayers.SetChildrenToLayer(_currentSpawnedPlayerAvatar.GameObject,
                                     firstPersonEnabled ? 0 : AvatarLayers.OnlyInThirdPerson);
 }
 private void OnFirstPersonEnabledChanged(bool firstPersonEnabled)
 {
     if (_currentSpawnedPlayerAvatar == null)
     {
         return;
     }
     AvatarLayers.SetChildrenToLayer(_currentSpawnedPlayerAvatar.GameObject,
                                     firstPersonEnabled ? 0 : AvatarLayers.OnlyInThirdPerson);
     foreach (var ex in _currentSpawnedPlayerAvatar.GameObject.GetComponentsInChildren <AvatarScriptPack.FirstPersonExclusion>())
     {
         ex.OnFirstPersonEnabledChanged(firstPersonEnabled);
     }
 }