Skip to main content
Max McKinney's user avatar
Max McKinney's user avatar
Max McKinney's user avatar
Max McKinney
  • Member for 12 years, 1 month
  • Last seen more than 5 years ago
awarded
awarded
Loading…
answered
Loading…
answered
Loading…
Loading…
awarded
revised
Loading…
Loading…
Loading…
comment
GameObject in hierarchy needs to know who it belongs to
I wouldn't use classes, I would use interfaces for this. And I would only have it so when the collision is triggered it checks the parent hierarchy for anything with an interface you defined. Either way both mine and Alex M's method will work.
Loading…
answered
Loading…
awarded
answered
Loading…
answered
Loading…