Exemplo n.º 1
0
    // 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...");
            }
        }
    }
Exemplo n.º 2
0
 public void showDialogPopup(RaycastHit hit)
 {
     DialoguePopup.Create(hit.point, key_Name + "DP");
 }