zhaoyang 2 年之前
父节点
当前提交
8e5a918f5a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      GameClient/Assets/Game/HotUpdate/Data/PhotographUtil.cs

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/PhotographUtil.cs

@@ -58,7 +58,7 @@ namespace GFGGame
                 if (render)
                 {
                     index++;
-                    center += render.bounds.center;
+                    center += render.bounds.center + new Vector3(render.offset.x, render.offset.y, 0);
                 }
             }
             if (index > 0) center /= index;