Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Why does my script work on one gameobject but not on a duplicate of the same object???

$
0
0
I just finished making the portal from Brackeys' video. In order to teleport the player, I use the same script for the two portals. But, for some reason, even tho the two portals are basically exactly the same (except one of them is rotated 180°), only one of them actually teleports the player.

I know this is kind of vague, but since the code itself clearly works, I can't give you many other details than that... And yes, I have made sure both the portals reference the correct place to...

Why does my script work on one gameobject but not on a duplicate of the same object???

Viewing all articles
Browse latest Browse all 1466670

Trending Articles