Skip to main content
6 events
when toggle format what by license comment
Jul 13, 2022 at 17:52 history edited Vaillancourt
edited tags
Feb 4, 2022 at 3:28 comment added Alexandre Got it. Thanks, I'll give it a try!
Feb 3, 2022 at 22:50 comment added Fabio S. You don't. You create a public game object field on the child script and in the editor you assign the parent to it. At that point you have access to all components of the parent and you can manipulate it from the child.
Feb 3, 2022 at 22:13 comment added Alexandre Makes sense, but how do I make the collider on the child trigger an event in the parent script?
Feb 3, 2022 at 22:03 comment added Fabio S. I don't know if your approach is the best, but I understand what you are trying to resolve. The way I would buy about it would be to create a second script, empty game object and attach the collider and script to the empty game object. Make the empty object a child of the character and place where you need it to be, that way you'd have separate triggers. Makes sense?
Feb 3, 2022 at 20:39 history asked Alexandre CC BY-SA 4.0