Reputation: 2035
Hello I'm making a 2d game on unity and I m having areas in my game where the action is different like if player enters the zone only then he's supposed to shoot
Sorry for the bad quality of the image in on my phone and tried to draw something as an example the red circle is the player and the blue rectangles is the area I'm supposed to detect
Upvotes: 0
Views: 3123
Reputation: 456
Well that's actually pretty easy. You just have to use invisible panels with a trigger event if the player walks through
Upvotes: 1