コード例 #1
0
 void OnCollisionExit(Collision other)
 {
     if (other.gameObject.tag == "Controller")
     {
         if (s != null)
         {
             print("hit the close button");
             print(s.getID() + " : " + d.getNodeID());
             if (s.getID().Equals(d.getNodeID()))
             {
                 print("call method");
                 s.reachedNode();
             }
         }
         d.CloseDocument();
         gameObject.GetComponent <Image>().color = Color.black;
     }
 }
コード例 #2
0
 public void setCurrentNode(StudyNode s)
 {
     csv_output.Add(currentTask + "," + s.getID() + "," + currentStudyNode.getTime_Taken());
     if (stageI < 3)
     {
         studyPrompt.moveUI(currentStudyNode.transform.position);
     }
     currentStudyNode.resetTime();
     currentStudyNode = s;
     closeBtns[0].setStudyNode(s);
     closeBtns[1].setStudyNode(s);
     taskNum++;
 }
コード例 #3
0
 public void setStudyNode(StudyNode s)
 {
     this.s = s;
     nodeID = s.getID();
 }