Grenade Data Location

Grenade data is now on Grenade.cs and not on Weapon.cs.
You need both scripts to make a grenade work
This commit is contained in:
Noah4ever
2021-12-09 14:55:06 +01:00
parent e59b767daf
commit 0b7ff6f5f1
6 changed files with 1346 additions and 50 deletions

View File

@@ -46,7 +46,6 @@ public class Shoot : NetworkBehaviour
}
if (Input.GetButtonDown("Fire")) {
updateCanvas = true;
// If current weapon kind is a rifle or pistole
string weaponKindString = weapon.WeaponKind.ToString();
if(weaponKindString == "Rifle" || weaponKindString == "Pistole") {