[정영민] 천일 오류 수정

26-01-23
- Resources Load 오류 수정
- Camera 기능 수정 및 위치 저장 기능 통합
- 층 StartPoint 찾지 못하는 오류 수정
This commit is contained in:
정영민
2026-01-23 12:58:43 +09:00
parent 3875f6f36b
commit a5b3c9a1e8
52 changed files with 740 additions and 2581 deletions

View File

@@ -49,13 +49,10 @@ namespace CHN
return;
}
if (controller.IsClickUI)
return;
LayerMask exceptionLayer = LayerMask.GetMask("Floor", "Ground");
LayerMask layerMask = floorLayers & ~exceptionLayer;
Ray ray = controller.camera.ScreenPointToRay(Input.mousePosition);
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
hitInfo = Physics.RaycastAll(ray, Mathf.Infinity, layerMask);
if (hitInfo.Length == 0)
@@ -82,15 +79,10 @@ namespace CHN
{
bool leftClick = Input.GetMouseButtonDown(0);
if (controller.IsClickUI)
{
return;
}
LayerMask exceptionLayer = LayerMask.GetMask("Machine");
LayerMask layerMask = floorLayers & ~exceptionLayer;
var ray = controller.camera.ScreenPointToRay(Input.mousePosition);
var ray = Camera.main.ScreenPointToRay(Input.mousePosition);
hitInfo = Physics.RaycastAll(ray, Mathf.Infinity, layerMask);
if (hitInfo.Length == 0)