コード例 #1
0
        void OnOpenUpgradeWindow()
        {
            if (this.m_upgrade_window.Visible)
            {
                UIOfficerInfo data = this.GetOfficerData(this.m_currentPageType, this.m_choose_officer_id);
                this.m_upgrade_window.Refresh(data.m_data, PoliceUILogicAssist.GetOfficerServerInfo(data.m_data));
                return;
            }

            this.m_cur_tween_progress = ENUM_TWEEN_PROGRESS.E_DETAIL_TO_UPGRADE;

            this.m_right_window_tween.PlayForward();
        }
コード例 #2
0
        void OnFinishRightWindowTween()
        {
            if (ENUM_TWEEN_PROGRESS.E_UPGRADE_TO_DETAIL == this.m_cur_tween_progress)
            {
                UIOfficerInfo data = this.GetOfficerData(this.m_currentPageType, this.m_choose_officer_id);
                this.m_detail_window.Refresh(data.m_data, PoliceUILogicAssist.GetOfficerServerInfo(data.m_data));
                this.m_upgrade_window.Visible = true;
                this.m_right_window_tween.PlayBackward();
            }
            else if (ENUM_TWEEN_PROGRESS.E_DETAIL_TO_UPGRADE == this.m_cur_tween_progress)
            {
                this.m_detail_window.Visible = true;
                UIOfficerInfo data = this.GetOfficerData(this.m_currentPageType, this.m_choose_officer_id);
                this.m_upgrade_window.Refresh(data.m_data, PoliceUILogicAssist.GetOfficerServerInfo(data.m_data));
                this.m_right_window_tween.PlayBackward();
            }

            this.m_cur_tween_progress = ENUM_TWEEN_PROGRESS.E_INVALID;
        }