mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-30 21:17:09 +01:00
Started Keybinds (1,2,3,4)
added: "Weapon1","Weapon2","Weapon3","Weapon4" to InputManager and started implementing Keybinds for weapons
This commit is contained in:
@@ -8,6 +8,7 @@ public class Weapon : MonoBehaviour
|
||||
{
|
||||
Rifle, Pistole, Knife, Grenade
|
||||
}
|
||||
[SerializeField] string WeaponName;
|
||||
[SerializeField] weaponKinds weaponKind;
|
||||
[SerializeField] bool active = false;
|
||||
[SerializeField] int damage = 0;
|
||||
@@ -38,9 +39,10 @@ public class Weapon : MonoBehaviour
|
||||
public Transform GunLeftREF { get => gunLeftREF; }
|
||||
public Transform GunRightREF { get => gunRightREF; }
|
||||
|
||||
private void Start()
|
||||
private void Awake()
|
||||
{
|
||||
CurrentAmmunition = MagazinSize;
|
||||
WeaponName = transform.name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user