// Use this for initialization void Start() { theTextBox = FindObjectOfType <textBoxManager> (); Debug.Log("start ATAL"); }
// Use this for initialization void Start() { bc = GetComponent <BoxCollider>(); text = GetComponentInChildren <textBoxManager>(); }
void OnTriggerEnter(Collider other) { text = other.GetComponentInChildren <textBoxManager>(); }
void OnTriggerExit(Collider other) { text = null; }
// Use this for initialization void Start () { theTextBox = FindObjectOfType<textBoxManager> (); Debug.Log("start ATAL"); }