public void ResetUniqueTyper(Typer typer) { var phrase = GetUniquePhrase(); typer.Reset(phrase); _firstLetterToTypers.Remove(_firstLetterToTypers.Single(x => x.Value == typer).Key); _firstLetterToTypers.Add(phrase[0], typer); }
private void StartMinigame(ActionType actionType) { if (IsThereMinigameRunning()) { return; } if (actionType == ActionType.FAST) { cancelAllMinigames(); typerMinigame.Reset(0); } else if (actionType == ActionType.MEDIUM) { cancelAllMinigames(); typerMinigame.Reset(1); } else if (actionType == ActionType.LONG) { cancelAllMinigames(); typerMinigame.Reset(4); } MinigameWin.SetActive(true); }