public void BackBtnClicked() { switch (m_PageMode) { case PAGEMODE.DECORATE_FRAME: { if (m_frameController.isNeedApply) { if (e_tipWindowCtr != null) { e_tipWindowCtr.Show(); } } else { if (e_decoratePanlObjUGUI != null) { e_decoratePanlObjUGUI.GetComponent <RectTransform> ().DOLocalMove(new Vector3(0, 0, 0), 0.6f); } if (e_frameScrowViewPanlObjUGUI != null) { e_frameScrowViewPanlObjUGUI.GetComponent <RectTransform> ().DOLocalMove(new Vector3(0, -150, 0), 0.6f); } m_frameController.ClearAll(); m_PageMode = PAGEMODE.DECORATE_MENU; } } break; case PAGEMODE.DECORATE_STICKER: { if (m_stickerController.isNeedApply) { if (e_tipWindowCtr != null) { e_tipWindowCtr.Show(); } } else { if (e_decoratePanlObjUGUI != null) { e_decoratePanlObjUGUI.GetComponent <RectTransform> ().DOLocalMove(new Vector3(0, 0, 0), 0.6f); } if (e_stikcerScrowViewPanlObjUGUI != null) { e_stikcerScrowViewPanlObjUGUI.GetComponent <RectTransform> ().DOLocalMove(new Vector3(0, -150, 0), 0.6f); } if (m_stickerController != null) { m_stickerController.setWork(false); } m_PageMode = PAGEMODE.DECORATE_MENU; } } break; case PAGEMODE.DECORATE_MENU: { if (e_decoratePanlObjUGUI != null) { e_decoratePanlObjUGUI.GetComponent <RectTransform> ().DOLocalMove(new Vector3(0, -150, 0), 0.6f); } if (e_mediaMainPanlObjUGUI != null) { e_mediaMainPanlObjUGUI.GetComponent <RectTransform> ().DOLocalMove(new Vector3(0, 0, 0), 0.6f); } setCameraActive(); if (e_PhotoMaskTex != null) { e_PhotoMaskTex.SetActive(false); } if (e_BackBtnObjUGUI != null) { e_BackBtnObjUGUI.GetComponent <RectTransform>().DOScale(new Vector3(0, 0, 0), 0.6f); } //open the left top share btn; if (e_ShareBtnObjUGUI != null) { e_ShareBtnObjUGUI.GetComponent <RectTransform>().DOScale(new Vector3(0, 0, 0), 0.5f); } if (e_ReverseCameraBtnObjUGUI != null) { e_ReverseCameraBtnObjUGUI.GetComponent <RectTransform>().DOScale(new Vector3(1, 1, 1), 0.6f); } if (m_stickerController != null) { m_stickerController.ClearAll(); } if (m_textController != null) { m_textController.ClearAll(); } if (m_frameController != null) { m_frameController.ClearAll(); } m_PageMode = PAGEMODE.FLITER_PREVIEW; } break; case PAGEMODE.DECORATE_TEXT: { if (m_textController != null && m_textController.isNeedApply) { if (e_tipWindowCtr != null) { e_tipWindowCtr.Show(); } } else { if (e_decoratePanlObjUGUI != null) { e_decoratePanlObjUGUI.GetComponent <RectTransform> ().DOLocalMove(new Vector3(0, 0, 0), 0.6f); } if (e_textPanlObjUGUI != null) { e_textPanlObjUGUI.GetComponent <RectTransform> ().DOLocalMove(new Vector3(0, -150, 0), 0.6f); } if (m_textController != null) { m_textController.setWork(false); } m_PageMode = PAGEMODE.DECORATE_MENU; } } break; } }