Example #1
0
    private void DetectInput()
    {
        // start timer button
        if (Input.GetKeyDown(startTimerBtn))
        {
            splitManager.StartTimer();
        }

        // new split button
        if (Input.GetKeyDown(newSplitBtn))
        {
            splitManager.NewSplit();
        }

        // pause timer button
        if (Input.GetKeyDown(pauseTimerBtn))
        {
            splitManager.PauseTimer();
        }

        // reset timer button
        if (Input.GetKeyDown(resetTimerBtn))
        {
            splitManager.ResetTimer();
        }
    }