Example #1
0
 public void Next()
 {
     if (inactive.Count == count - 1)
     {
         turnSetter?.Invoke(-1);
         return;
     }
     do
     {
         currentId = (currentId % count) + 1;
     } while (inactive.Contains(currentId));
     Debug.Log("queue next, current id = " + currentId);
     TurnChanged?.Invoke(GameState.Play);
     turnSetter?.Invoke(Current);
 }