private BsPlayer[] GetAllPlayers() { var blockstormChracters = Object.FindObjectsOfType <Character>(); if (blockstormChracters != null) { var blockstormChractersCount = blockstormChracters.Length; var players = new List <BsPlayer>(); for (var i = 0; i < blockstormChractersCount; i++) { var suspectPlayer = BsPlayer.TryGetPlayer(blockstormChracters[i]); if (suspectPlayer != null) { players.Add(suspectPlayer); } } return(players.ToArray()); } return(null); }