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