From ea5a8ea2dfa230dbe8e96a8a6619bcfbc13e8e5b Mon Sep 17 00:00:00 2001 From: Guderian2nd <gshin3@live.com> Date: Wed, 14 Aug 2019 13:05:20 +0900 Subject: [PATCH] WIP --- Assets/Scripts/UIManager.cs | 42 ------------------------------------- 1 file changed, 42 deletions(-) diff --git a/Assets/Scripts/UIManager.cs b/Assets/Scripts/UIManager.cs index 42c9296..0e0f33d 100644 --- a/Assets/Scripts/UIManager.cs +++ b/Assets/Scripts/UIManager.cs @@ -92,42 +92,6 @@ public class UIManager : MonoBehaviour if (isIgnored) { - RaycastHit hit1; - RaycastHit hit2; - var ray = Camera.main.ScreenPointToRay(Input.mousePosition); - - if (Physics.Raycast(ray, out hit1)) - { - ray = playercamera.ViewportPointToRay(hit1.textureCoord); - if (Physics.Raycast(ray, out hit2)) - { - var obj = hit2.collider.gameObject; - - if (obj.tag == "path") - { - int pathNum = int.Parse(obj.name.Substring(13)); - - if (pathNum != prevSelectPathNum) - { - updatePathInfo(obj, pathNum); - - var mouseClickPosition = getMouseClickPosition(hit1); - var v = getDestVector(mouseClickPosition - middlePoint, new Vector3(hit2.point.x, hit2.point.z, 0.0f), pathNum); - - _pathUI.transform.position = mouseClickPosition + v; - _pathUI.SetActive(true); - - prevSelectPathNum = pathNum; - } - } - else - { - _pathUI.SetActive(false); - prevSelectPathNum = -1; - sliderflag = 0; - } - } - } //í´ë¦ëœ uiê°€ 패ë„만 있ì„ë•Œ. TryFIndPath(); } @@ -240,12 +204,6 @@ public class UIManager : MonoBehaviour prevSelectPathNum = pathNum; } - else - { - _pathUI.SetActive(false); - prevSelectPathNum = -1; - sliderflag = 0; - } } else { -- 2.22.0