void OnTriggerExit(Collider other) { //print("Exit"); // If it's a wire that's intersecting with our controller, we change the wire's color if (other.gameObject.tag == "Wire") { //print("OnTriggerExit!"); wireTracerProxy = GameObject.FindObjectOfType <FP_WireTracerProxy>(); print("WireTracer: " + (wireTracerProxy != null)); print("Mat: " + (activeMaterial != null)); wireTracerProxy.WireChangeMaterial(activeMaterial); } }
// Use this for initialization void Start() { wireTracerProxy = GameObject.FindObjectOfType <FP_WireTracerProxy>(); }