void Update() { if (!Application.isPlaying) { // editor if (AttributeNameMirror != AttributeName) { AttributeNameMirror = AttributeName; UpdateAttributeName(); } if (mMirrorAttrType != AttriType) { mMirrorAttrType = AttriType; UpdateAttributeTypeIcon(); } } if (!IsHidden() && HelpUtil.GetButtonState(false)) { // show the attribute tip // Vector3 tTouchPos = HelpUtil.GetButtonPosition(); Ray tRay = Globals.Instance.MGUIManager.MGUICamera.ScreenPointToRay(tTouchPos); RaycastHit tHit; if (mBoxCollider.Raycast(tRay, out tHit, 1000)) { Globals.Instance.MGUIManager.ShowAttributeTips(this); } } }