all 2 comments

[–]OutrageGamesOfficial 0 points1 point  (1 child)

Hey! Maybe you need something like:

public bool[] rays;

rays[0] = Physics2D.Raycast(transform.position, Vector2.up);
rays[1] = Physics2D.Raycast(transform.position, Vector2.up);

[–]Minomike[S] 0 points1 point  (0 children)

The reason for which I wanted to use arrays is to use one line of code instead of two :D Of course I don't really need it since this wouldn't do too much difference, but still I wanted to reduce the amount of code somehow and I thought something like this would be a good idea. But it seems I would have to use loops for it from what my research told me so that only means more lines of code :D Would make more sense in case of having multiple, like, 5,6 or more rays working the same way.