Exemplo n.º 1
0
 public void OnClick()
 {
     if (subjectNameField.text != "")
     {
         sm.subjectName  = subjectNameField.text;
         sm.isStartStudy = !sm.isStartStudy;
         GenerateFile(sm.subjectName);
         csp.HideStartPanel();
         itvc.ShowIntervalTimer();
         Cursor.visible   = false;
         Cursor.lockState = CursorLockMode.Locked;
     }
 }
Exemplo n.º 2
0
 public void FinishSession()
 {
     if (gameObject.transform.position.y <= 4.5f)
     {
         sm.resultState = 1;
     }
     else
     {
         sm.resultState = 0;
     }
     ctp.HideTrialPanel();
     tv.ResetTimer();
     jatv.FinishRecording();
     itvc.ShowIntervalTimer();
     sm.HP             = 100;
     sm.isStartSession = false;
 }