Shot Script angefangen kleine änderung am AR Model

This commit is contained in:
PBA3H25ABU committed 2026-06-25 10:53:22 +02:00
1 parent 22c4e0d7a9
commit f66d78348a
7 files changed
+265 -157

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
using UnityEngine;
public class Shoot : MonoBehaviour
{
[SerializeField] GameObject bulletPrefab;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.Mouse0))
{
Shot();
}
}
public void Shot()
{
Instantiate(bulletPrefab);
}
}
+2
View File
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: a10d4b5b33d924c428453e46c9513163