Esempio n. 1
0
        private Vector2 fixMousePosition(RectTransform r)
        {
            bool    b;
            Vector2 pos = CanvasUtil.ScreenToUISpacePos(Input.mousePosition, DialogCanvasUtil.DialogCanvasRect, out b);

            return(new Vector2(pos.x - r.rect.width, pos.y + r.rect.height));
        }