- Home /
Is there a way to add different trigger to each specific game Object
Hello,
I am making a Whack a Mole type game
There are two modes to the game one is simple "tap to hit" game and the other mode is a "swipe to throw and hit" game
The game has different animations that play according to the state of the object if it is hit or if it is idle and waiting. I've used buttons to make the "tap to hit" mode of the game and it is working as intended
Now im facing a problem making the "swipe to throw and hit" mode
I have tried to put multiple rigid bodies as triggers in the place of the buttons but the problem is each button can have a specific on click event but the rigid bodies dont have a specific trigger event,they all use the generic OnColliderEnter
Is there any way i can solve this problem?
Pls note that the rigid bodies im using are placed on top of a 2d UI canvas with the mesh set as none so they are not visible but are only used as triggers.
Your answer
Follow this Question
Related Questions
Can i Move/Rotate triggers without Rigidbodies? And other collider questions. 3 Answers
Having problems with playing a sound (C#) 2 Answers
Trigger with get key down problems 0 Answers
Audio trigger when FPS walks into things, walls, doors etc 0 Answers
How to make a particle system play on trigger with another box collider 1 Answer