Beispiel #1
0
    private void PlaceNewTarget()
    {
        Ray ray = mainCam.ScreenPointToRay(Input.mousePosition);

        if (Physics.Raycast(ray, out RaycastHit hitInfo))
        {
            tm.SpawnTarget(hitInfo.point);
        }
    }