06
11


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            RaycastHit hit;
            Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
            Physics.Raycast(ray, out hit);
 
            if (hit.collider != null)
            {
                CurrentTouch = hit.transform.gameObject;
                EventActivate();
            }
        }
    }
cs


COMMENT