// Update is called once per frame void Update() { if (Input.GetMouseButtonDown(0)) { Ray ray = cam.ScreenPointToRay(Input.mousePosition); RaycastHit hit; if (Physics.Raycast(ray, out hit)) { DialoguePopup.Create(hit.point, "Hey, Listen..."); } } }
public void showDialogPopup(RaycastHit hit) { DialoguePopup.Create(hit.point, key_Name + "DP"); }