I found another problem. After each room is generated, it seems that they are independent coordinate systems, which makes it difficult for me to ask the enemy to carry out some actions based on distance and position. Is there any way to unify their coordinate systems.
Looking forward to your reply