public void RequestMinigame() { Minigame minigame = RollMinigame(); var interactables = GetAllAvailableInteractablesForMinigame(minigame.MinigameType); // second roll if (interactables.Count == 0) { minigame = RollMinigame(); interactables = GetAllAvailableInteractablesForMinigame(minigame.MinigameType); if (interactables.Count == 0) { return; } } int randomInteractible = Random.Range(0, interactables.Count); Interactable interactable = interactables[randomInteractible]; interactable.SetInteractable(true); print("Dispalying minigame" + minigame.MinigameType); UIEvents.DisplayRequest(minigame.MinigameType); StartCoroutine(TimeToStartMinigame(interactable, minigame.timeToStart, randomInteractible)); }