[정영민] 천일 오류 수정
26-01-23 - Resources Load 오류 수정 - Camera 기능 수정 및 위치 저장 기능 통합 - 층 StartPoint 찾지 못하는 오류 수정
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user