- Home /
Enemy Detection Problem in Pacxon Similar Game
Hi Everyone,
I am Working on Pacxon Similar Game. I am Done with the Logics of Filling the area covered by the character. But Problem occuring is in the detection of enemy simultaneously in 2 different areas. Basically i have Drawn the Grid programatically instantiating boxes with name for e.g. a0,1 and get position of enemy but the thing is how i get to know the particularly enemy existence for the single area.
Comment
If I have understood you correctly, you want to detect when an enemy enters a specific area. If so, create a collider for the area and make it a trigger. Then use OnTriggerEnter() function to do whatever you want. Or you can use Physics.OverlapSphere.
Your answer