示例#1
0
 public void ChangeEx(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         return;
     }
     if (idfile.ContainsKey(id))
     {
         ELID                   = id;
         ExperimentStatus       = EXPERIMENTSTATUS.NONE;
         ELRepeat               = 0;
         ELLoadTime             = ELReadyTime = ELStartTime = ELStopTime = timer.ElapsedMillisecond;
         uicontroller.exs.value = uicontroller.exs.options.FindIndex(i => i.text == id);
     }
     else
     {
         Debug.LogWarning($"Can Not Find {id} in Experiment Directory: {uicontroller.config.ExDir}.");
     }
 }
示例#2
0
 public void OnELStop()
 {
     ELStopTime = timer.ElapsedMillisecond;
     ELRepeat++;
     ExperimentStatus = EXPERIMENTSTATUS.STOPPED;
 }
示例#3
0
 public void OnELStart()
 {
     ELStartTime      = timer.ElapsedMillisecond;
     ExperimentStatus = EXPERIMENTSTATUS.RUNNING;
 }
示例#4
0
 public void StartEx()
 {
     ExperimentStatus        = EXPERIMENTSTATUS.STARTING;
     uicontroller.start.isOn = true;
 }