has anyone encountered a problem like this?
I am looking for a solution on my own but no luck so far.
Steps to reproduce:
-
add this code to your Ammo.cs
[SerializeField] AmmoSlot ammoSlots;
[System.Serializable]
private class AmmoSlot
{
public AmmoType ammoType;
public int currentAmmoAmount;
}
- From editor, change the number of Ammo Slots to more than 1