mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 17:23:03 +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
|
// Update is called once per frame
|
||||||
void Update()
|
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;
|
Camera camera = Camera.main;
|
||||||
RaycastHit hit;
|
RaycastHit hit;
|
||||||
Ray ray = camera.ScreenPointToRay(Input.mousePosition);
|
Ray ray = camera.ScreenPointToRay(Input.mousePosition);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user