zhaoyang 2 years ago
parent
commit
8e5a918f5a
1 changed files with 1 additions and 1 deletions
  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)
                 if (render)
                 {
                 {
                     index++;
                     index++;
-                    center += render.bounds.center;
+                    center += render.bounds.center + new Vector3(render.offset.x, render.offset.y, 0);
                 }
                 }
             }
             }
             if (index > 0) center /= index;
             if (index > 0) center /= index;