///////////////////////////////////////////////////////////////// // COLLIDER METHODS ///////////////////////////////////////////////////////////////// void OnTriggerEnter(Collider other) { SceneObject si = other.gameObject. GetComponent<SceneObject>() as SceneObject; if (si != null) { touch = si; touch.Highlight(); } CalibrateBox cb = other.gameObject. GetComponent<CalibrateBox>() as CalibrateBox; if (cb != null) { calibrateBox = cb; calibrateBox.Highlight(); } TouchMe tm = other.gameObject. GetComponent<TouchMe>() as TouchMe; if (tm != null) { if (trial != null) { trial.TouchMe(); } if (practice != null) { practice.TouchMe(); } } }