Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
void Update() { if (Input.GetMouseButtonDown(0)) { Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); RaycastHit hit; if (Physics.Raycast(ray, out hit, 1000)) { npc.MoveTo(hit.point); } } }