Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         Vector3    mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
         Vector3Int pos      = grid.WorldToCell(mousePos);
         Debug.Log(pos);
     }
 }