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; } }
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++; }
public void setStudyNode(StudyNode s) { this.s = s; nodeID = s.getID(); }