I having a question. I have 1 player(gameobject) and many stair(gameobject). Each stair contain their own stair_condition_scripts, the inside are the same except the int call stair_id in each scripts. the systems I have right now are working like this: when player reach that stair it will detect if that stair has a tag call stair_entrance or not. Then it will getcomponent<stair_condition_script>(). Now the problem occur when I reach another stair. The player script can't detect which one of this stair was it, and it can't get a new stair_gameobject_scripts of that new stair. So now I have an idea of give each stair an integer of it own so the player script could defy it. But another question come up. Now how do I detect the intiger of that scripts and how do I getcomponent of that exact stair? Or does anyone has a better solution of this?