mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 14:43:08 +02:00
added important comment to PlayerClickSystem
This commit is contained in:
parent
ee7c0fdfa1
commit
2d1aa7cb9c
@ -16,9 +16,9 @@ public class PlayerClickSystem : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if(Input.GetMouseButton(0))
|
||||
if(Input.GetMouseButton(0)) // Change to new input system
|
||||
{
|
||||
Debug.Log("CLICK");
|
||||
//Debug.Log("CLICK");
|
||||
Camera camera = Camera.main;
|
||||
RaycastHit hit;
|
||||
Ray ray = camera.ScreenPointToRay(Input.mousePosition);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user