chenxin
2020-12-12 75215899d4875545a49c49ee78eff4b8880932f3
Assets/Scripts/Guide/Mask/RectGuidance.cs
@@ -106,7 +106,7 @@
    }
    public void InitForCamera(Image target, float x, float y)
    public void InitForCamera(Image target, float x, float y, Vector2 offect)
    {
        this.target = target;
        if (eventPenetrate != null)
@@ -115,14 +115,14 @@
        }
        Vector2 center = target.GetComponent<RectTransform>().anchoredPosition;
        center += offect;
        material.SetVector("_Center", center);
        material.SetFloat("_SliderX", x);
        material.SetFloat("_SliderY", y);
    }
    public void InitForCamera(Image target, Vector2 center ,float x, float y)
    public void InitForCamera(Image target, Vector2 center, float x, float y)
    {
        this.target = target;
        if (eventPenetrate != null)