public void EnableColliderCurrentTextBox(bool enable) { if (currentTextBox != null) { Collider col = currentTextBox.GetComponent <Collider>(); col.enabled = enable; } // else{ // Debug.Log( "currentTextBox not set." ); // } }