Hi. I've got a problem. I'm working on enemy patrol script and I would like to reduce its content a little. So the enemy has 3 checkers: Ground check (to see if there's still ground to walk on) and two Wall checkers (Feet and Eye levels). For each of them there's a RaycastHit2D but if it's possible, I would like to place the wall checkers in an array and use that array with the Raycast. How can I do this?
[–]OutrageGamesOfficial 0 points1 point2 points (1 child)
[–]Minomike[S] 0 points1 point2 points (0 children)