public static bool TryGetRandomFilteredSpawn(out PlayerSpawnPoint filteredSpawn)
        {
            var filteredSpawnsCount = _filteredSpawns.Count;

            if (filteredSpawnsCount != 0)
            {
                if (_filteredSpawnIndex == _filteredSpawns.Count)
                {
                    _filteredSpawnIndex = 0;
                }

                filteredSpawn = _filteredSpawns[_filteredSpawnIndex];
                _filteredSpawnIndex++;
                return(true);
            }

            filteredSpawn = new PlayerSpawnPoint(null, null);
            return(false);
        }
 public DistanceToPoint(float freeDistance, PlayerSpawnPoint point)
 {
     FreeDistance = freeDistance;
     Point        = point;
 }