public void StartMinigame(MinigameStartInfo info)
        {
            StartInfo = info;
            StartTime = Time.time;
            TimeForMinigame = info.SecondsToComplete;

            StartElapsedTimer();

            OnStartMinigame();
        }
        public void StartMinigame()
        {
            if (CurrentMinigame != null)
                return;

            previousMinigame = SelectedMinigamePrefab;

            var instance = Instantiate(SelectedMinigamePrefab.gameObject);
            CurrentMinigame = instance.GetComponent<Minigame>();
            NextMinigame = null;

            var info = new MinigameStartInfo
            {
                SpeedFactor = SpeedFactor,
                SecondsToComplete = CurrentMinigame.StartingSecondsToComplete / SpeedFactor
            };

            CurrentMinigame.StartMinigame(info);
        }
 public void StartMinigame(MinigameStartInfo info)
 {
     SetState(MinigameState.Running);
     MinigameScript.StartMinigame(info);
 }