mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 20:52:10 +01:00
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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user