Example #1
0
    /// <summary>
    /// 设置当前选中对象
    /// </summary>
    public static void SetCurTouchMove(TouchMove touch)
    {
        if (null != m_SelTouch)
        {
            if (touch != m_SelTouch)
            {
                //m_SelTouch.ResetPos();
                //m_SelTouch.ShowMoveArrow(false);
                m_SelTouch.ShowTrapRoomUI(false);
                m_SelTouch.DestroyAttackRange();
                m_SelTouch.UnLoadEditEffect();
                //m_SelTouch.LeaveRoom();
            }
        }
        if (touch != null)
        {
            touch.TweenColor();
            touch.LoadEditEffect(TouchMoveState.CanEdit);
            // touch.ShowMoveArrow(true);
        }
        if (touch != m_SelTouch)
        {
            if (m_SelTouch)
            {
                m_PreTouch = m_SelTouch;
                m_SelTouch.StopTweenColor();
            }
        }

        m_SelTouch = touch;
    }
Example #2
0
    public static void ShowRoomGridUI(bool bShow)
    {
        TouchMove tm = TouchMoveManager.GetCurTouchMove();

        if (tm != null)
        {
            tm.ShowTrapRoomUI(bShow);
        }
    }