Hello! I have to create a trigger for my game, which, by being activated from the FPC, should trigger many actions at the same time, like destroying an environment, creating another one, activating some animations… I already did some research on the Internet, but didn’t find anything interesting. Does anyone have any suggestions?
I am not sure I know what you mean.
If you want to do these things in a specific sequence then put them one after another in the OnTriggerEnter method body.
If you don’t care about order but want them to apply to different objects then you can used SendMessage() to call methods on other objects Or give each object its own trigger.
If you want them in order AND on other objects then put the objects in public fields on your trigger object and just call methods on them in your OnTriggerEnter