Shot Script angefangen kleine änderung am AR Model

This commit is contained in:
2026-06-25 10:53:22 +02:00
parent 22c4e0d7a9
commit f66d78348a
7 changed files with 265 additions and 157 deletions
+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