public void ConnectPlayerForEgg(string[] res) { if (res.Length == 2) { Egg egg = spawnManager.FindEggById(int.Parse(res[1])); if (egg != null) { spawnManager.eggs.Remove(egg); egg.Crack(); Destroy(egg.gameObject); } } }