diff options
Diffstat (limited to 'Assets/Scripts/Weapon.cs')
-rw-r--r-- | Assets/Scripts/Weapon.cs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/Assets/Scripts/Weapon.cs b/Assets/Scripts/Weapon.cs deleted file mode 100644 index 1af1abb..0000000 --- a/Assets/Scripts/Weapon.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class Weapon : MonoBehaviour -{ - public Transform firePoint; - public GameObject projectilePrefab; - - // Update is called once per frame - void Update() - { - if (Input.GetButtonDown("Fire1")) - { - Shoot(); - } - } - - void Shoot() - { - Instantiate(projectilePrefab, firePoint.position, firePoint.rotation); - } -} |