【剧情】剧情对话偏移量修正
parent
5319704699
commit
1b6e937265
|
|
@ -131,9 +131,9 @@ public class UIStoryMainController : UIWindow
|
|||
var player = StoryManager.instance.playerManager.playerDict[playerId];
|
||||
var go = player.rootObj;
|
||||
var playerPos = go.transform.position;
|
||||
// playerPos.x += _offsetX;
|
||||
// playerPos.y += _offsetY;
|
||||
// playerPos.z += _offsetZ;
|
||||
playerPos.x += _offsetX;
|
||||
playerPos.y += _offsetY;
|
||||
playerPos.z += _offsetZ;
|
||||
var pos = UIUtils.WorldPos2ScreenPos(playerPos, CameraManager.Instance.MainCamera);
|
||||
|
||||
pos = UIUtils.ScreenPos2WorldPos(pos, CameraManager.Instance.UICamera);
|
||||
|
|
|
|||
Loading…
Reference in New Issue