Esempio n. 1
0
 private void UpdateView(List <KarutaPlayer> karutaPlayers)
 {
     foreach (var(player, index) in karutaPlayers.WithIndex())
     {
         if (ListUtility.TryGetValue(karutaPlayerIndicators, index, out var indicator))
         {
             indicator.UpdateView(player);
         }
     }
 }
Esempio n. 2
0
    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);
    }