Why didn’t we do fighter.GetComponent() instead of modifying the Pickup() parameter and making all those changes?
It’s simply the way Sam chose to go about the method. In the next course, we’re going to be changing the way pickups work altogether (they’ll be going into an Inventory component instead).
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.