"< 피하기 미니게임 >

우측 화면처럼 캐릭터가 화면 바깥으로 나갈 수 있습니다.  (화면 바깥으로 이동 시 캐릭터 안보임)
미니게임 화면 바깥으로 캐릭터가 나가지 못하도록 막아주시기 바랍니다."
This commit is contained in:
Ino 2025-10-02 01:05:52 +09:00
parent a0a0084536
commit 059ce01a06
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public class Game_Mini : MonoBehaviour
// 부모의 절반 너비에서 캐릭터 크기/여백 빼서 제한 // 부모의 절반 너비에서 캐릭터 크기/여백 빼서 제한
float halfWidth = parentRt.rect.width * 0.5f; float halfWidth = parentRt.rect.width * 0.5f;
PcPosLimit = halfWidth - (tf_pc.rect.width * 0.5f) - 0f; // 70px 여백 PcPosLimit = halfWidth - (tf_pc.rect.width * 0.5f) + 125f; // 70px 여백
} }
void Init() void Init()