static private string NameImageFile() { ExperimentSettings _expInstance = ExperimentSettings.GetInstance(); string imageFileName = _expInstance.FileName + "_" + _expInstance.MazeSettings.TrialName + _expInstance.TrialTracker[_expInstance.MazeSettings.TrialName].ToString() + "_"; if (ExperimentSettings.IsAP() || ExperimentSettings.IsSPT() || ExperimentSettings.IsTP()) { if (_expInstance.MazeSettings.Arrows) { imageFileName += "Arrows_"; } } if (ExperimentSettings.IsCM()) { imageFileName += "Start" + _expInstance.MazeSettings.StartLocationCM + "-"; if (!string.IsNullOrEmpty(_expInstance.MazeSettings.LandmarkGoalCM)) { imageFileName += "Landmark" + _expInstance.MazeSettings.LandmarkGoalCM; } } imageFileName += "_path.png"; return(imageFileName); }
void OpenSubmenu() { // Cursor is disabled coming out of maze scenes Cursor.visible = true; Cursor.lockState = CursorLockMode.None; // QUESTION: Could this be simplified? Still have to line up the right menu w/ the experiment type selected. FirstPanel.SetActive(false); if (ExperimentSettings.IsAP()) { APPanel.SetActive(true); } else if (ExperimentSettings.IsSPT()) { SPTPanel.SetActive(true); } else if (ExperimentSettings.IsTP()) { TPPanel.SetActive(true); } else if (ExperimentSettings.IsCM()) { CMPanel.SetActive(true); } }
static private List <string> GetExperimentInfo() { List <string> experimentInfo = new List <string>(); ExperimentSettings _expInstance = ExperimentSettings.GetInstance(); experimentInfo.Add(_expInstance.MazeSettings.TrialName + _expInstance.TrialTracker[_expInstance.MazeSettings.TrialName].ToString()); experimentInfo.Add("Maze: " + _expInstance.MazeSettings.MazeName.ToString()); experimentInfo.Add("Trial Number: " + _expInstance.TrialTracker[_expInstance.MazeSettings.TrialName].ToString()); experimentInfo.Add("Experiment Type: " + _expInstance.ExperimentType); if (ExperimentSettings.IsAP() || ExperimentSettings.IsSPT() || ExperimentSettings.IsTP()) { experimentInfo.Add("Arrows: " + _expInstance.MazeSettings.Arrows.ToString()); } if (ExperimentSettings.IsCM()) { experimentInfo.Add("CM Start Location: " + _expInstance.MazeSettings.StartLocationCM); if (!string.IsNullOrEmpty(_expInstance.MazeSettings.StartLocationCM)) { experimentInfo.Add("CM Landmark:" + _expInstance.MazeSettings.LandmarkGoalCM); } } experimentInfo.Add("Distance: " + totalDistance); experimentInfo.Add("Time: " + totalTime); experimentInfo.Add("Avg. Velocity: " + avgVelocity); if (_expInstance.MazeSettings.ReachedEnd && _expInstance.MazeSettings.MazeName != MazeNameEnum.JP) { experimentInfo.Add("Reached End: " + _expInstance.MazeSettings.ReachedEnd.ToString()); } else if (!_expInstance.MazeSettings.ReachedEnd && _expInstance.MazeSettings.MazeName != MazeNameEnum.JP) { experimentInfo.Add("Reached End: False, manual exit"); } experimentInfo.Add("\r\n"); return(experimentInfo); }