So just a quick question of what we have done here. The awake function gets called when the script is loaded and through this code:
equipment = GetComponent<Equipment>();
if(equipment)
{
equipment.equipmentUpdated += UpdateWeapon;
}
we get notifications and subscribe to the equipmentUpdate but what does that even mean? I dont get it, how UpdateWeapon gets called everytime when we equip/unequip something, when its only been called once in the Awake function in the beginning? or what does Sam actually mean with subscription?