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

@@ -122,6 +122,7 @@ public class WeaponManager : NetworkBehaviour
}
activeWeapons[index] = hit.transform.gameObject;
activeWeapons[index].SetActive(true);
// \/ Same as in switchWeapon()
currentWeaponIndex = index;
procedualAnimationController.OnSwitchWeapon(activeWeapons[currentWeaponIndex]);
shoot.setWeapon(activeWeapons[currentWeaponIndex]);