private void UpdateView(List <KarutaPlayer> karutaPlayers) { foreach (var(player, index) in karutaPlayers.WithIndex()) { if (ListUtility.TryGetValue(karutaPlayerIndicators, index, out var indicator)) { indicator.UpdateView(player); } } }
private void UpdateView(CubeManager cubeManager) { UIUtility.TrySetActive(toioCubePlayerIndicators, false); foreach (var(cube, index) in cubeManager.cubes.WithIndex()) { ListUtility.TryGetValue(toioCubePlayerIndicators, index, out var indicator); if (indicator == null) { continue; } UIUtility.TrySetActive(indicator, true); indicator.UpdateView(cube, index); } connectButton.interactable = cubeManager.cubes.Count < toioCubePlayerIndicators.Count; startButton.interactable = !ListUtility.IsNullOrEmpty(cubeManager.cubes); }