Destroying & Then Spawning Quickly

I’m thinking about how I’ll do a transformation which would involve a Character Prefab switching with Another Character Prefab, but done so in a way it looks like the Play Prefab transformed, and I’m curious if I switch them quick enough will any scripts trying to reach them be affected or will they just find the new one?



Obviously they’d be a little more in depth but is this possible or do I have to create a variable saying that if they’re switching than don’t look for them? Hard to explain I know but if I got through to anyone please tell me if it’s possible.

You can keep the prefabs under the same parent object and enable disable them based on the mechanics you want.

var player1 : GameObject;
var player2 : GameObject; = false; = true;