void OnPress(bool isPressed) { //if (isPressed == false && m_bDraging) //{ // m_bDraging = false; // m_myDCamera.MovePage(m_vec2Drag); //} if (!isPressed) { if (m_hasSendSound) { //EventDispatcher.TriggerEvent(SettingEvent.UIUpPlaySound, m_myDCamera.name); m_hasSendSound = false; } if (m_bDraging) { m_bDraging = false; if (!m_isTryingDraggingMove) { m_myDCamera.AloneMove(m_vec2AloneMoveSpeed); } //else //{ m_myDCamera.OnDraggingMoveDone(); //} m_myDCamera.MovePage(m_vec2Drag); } else { UIButtonTween[] btList = transform.GetComponentsInChildren <UIButtonTween>(true); if (btList.Length > 0) { btList[0].enabled = true; } } m_fCountDown = 0; m_isCountDown = false; m_isTryingDraggingMove = false; } else { m_isCountDown = true; } }