コード例 #1
0
    /// <summary>
    /// 窗口背景碰撞体处理
    /// </summary>
    private void AddColliderBgForWindow(UIBaseWindow baseWindow)
    {
        UIWindowColliderMode colliderMode = baseWindow.windowData.colliderMode;

        if (colliderMode == UIWindowColliderMode.None)
        {
            return;
        }

        if (colliderMode == UIWindowColliderMode.Normal)
        {
            GameUtility.AddColliderBgToTarget(baseWindow.gameObject, "common_mask_black", maskAtlas, true);
        }
        if (colliderMode == UIWindowColliderMode.WithBg)
        {
            GameUtility.AddColliderBgToTarget(baseWindow.gameObject, "common_mask_black", maskAtlas, false);
        }
    }