Exemple #1
0
        private void DisplayInfo()
        {
            string performance = OutputTextHandler.HowManyValid(_reactionTimes, _taskType, _threshold);

            _panel.GetComponentInChildren <Text>().text = performance;
            _currentDisplayStatus = DisplayStatus.DisplayingInfo;
        }
        private void DisplayInfo()
        {
            double mean = SrtHandler.GetMean(_reactionTimes);

            _threshold = SrtHandler.GetAcceptableReationTime(_reactionTimes);
            string performance = OutputTextHandler.Performance(mean, _baselineSettings.NumberOfTasks);

            _panel.GetComponentInChildren <Text>().text = performance;
            GlobalSettings.Gs?.UpdateThreshold(_threshold);
            _currentDisplayStatus = AntiSpamming.DidHeSpam(4) || !(mean < double.MaxValue)
                                ? DisplayStatus.GoToMainMenu : DisplayStatus.DisplayingInfo;
            UnityClient.Communicator.Connect();
        }