This commit is contained in:
2025-05-13 05:12:44 +03:00
parent 235216efe2
commit fb64cf1186
22 changed files with 476 additions and 4 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ public class CrossHair : MonoBehaviour {
// Update is called once per frame
void Update () {
var ray = camera.ViewportPointToRay (new Vector3(0.5f,0.5f,0.0f));
var ray = GetComponent<Camera>().ViewportPointToRay (new Vector3(0.5f,0.5f,0.0f));
hasHit = Physics.Raycast (ray, out hit);
if (hasHit) {
target = hit.point;