"< 피하기 미니게임 >
우측 화면처럼 캐릭터가 화면 바깥으로 나갈 수 있습니다. (화면 바깥으로 이동 시 캐릭터 안보임) 미니게임 화면 바깥으로 캐릭터가 나가지 못하도록 막아주시기 바랍니다."
This commit is contained in:
parent
a0a0084536
commit
059ce01a06
|
|
@ -49,7 +49,7 @@ public class Game_Mini : MonoBehaviour
|
|||
|
||||
// 부모의 절반 너비에서 캐릭터 크기/여백 빼서 제한
|
||||
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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue