コード例 #1
0
ファイル: GameState.cs プロジェクト: MarleneMayr/stonehenge
    private void StartGame()
    {
        gameMenu.Show();

        timer.StartTimer(60, EndGame);
        timer.OnTimerTick.AddListener(UpdateTime);
        audioManager.PlayOnce(AudioManager.GlobalSound.TickingLoop);

        selectionManager.Activate();
        gameMenu.ScreenTapped.AddListener(selectionManager.HandleTap);
    }
    public void StartRecording(int time)
    {
        //StatesCSV = new List<string>();
        States   = new List <TaggedEmotivState>();
        initTime = -1;

        if (ForceOverride)
        {
            time = Duration;

            if (EnableSelectionManager)
            {
                SelectionManager.Activate();
            }
            else
            {
                SelectionManager.Deactivate();
            }
        }

        LabeledFlashingHighligter.EnableHighlight();
        SelectionManager.ResetInterval();
        StartCoroutine(RecordingFor(time));
    }