// instantiates properties after the other components have been instantiated private void Awake() { playerStats = GetComponent <PlayerStats>(); playerManager = GetComponent <PlayerManager>(); weaponSlotManager = GetComponentInChildren <WeaponSlotManager>(); playerInventory = GetComponent <PlayerInventory>(); }
// gets the weapon slot manager, which handles what the player actually has in their hands private void Awake() { weaponSlotManager = GetComponentInChildren <WeaponSlotManager>(); }