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); } } }
// Update is called once per frame void FixedUpdate() { if (transform.localPosition.y < InvisiblePosition - 10) { try{ mDispearTimer += Time.deltaTime; if (mDispearTimer >= 6.0f) { Hide(); return; } if (mAttachSprite.IsHidden() || !mAttachSprite.gameObject.active) { Hide(); } if (HelpUtil.GetButtonState(true)) { Hide(); } }catch { Hide(); } } }
void Update() { bool tPlayDone = HelpUtil.GetButtonState(false); // some tap event to stop cutscene if (tPlayDone && m_currCameraAnimControl != null) { m_currCameraAnimControl.Stop(true); Destroy(m_currCameraAnimControl); m_currCameraAnimControl = null; } }