Guys, i am experiencing a VERY strange bug/problem on my game. I am working on an FPS, and it took me quite some time to make a “playable” underwater mode for the standard first person character, because it uses a character controller, two scripts interacting with each other at the same time having everything on private, a kinematic rigidbody, etc…
But after some hours i was able to make a underwater mode for it that disables the character controller, unchecks it’s rigidbody’s options and restricts it in some positions and rotations, and then add a script that will make the player move in the direction of the mouse. But, i am having a problem with adding this to two prefabs.
I have two EXACTLY EQUAL prefabs, but with different names. Now the strange thing is, with prefab n1°, i can’t pass through walls when on underwater mode. BUT prefab n2° can! Wtf? How can this be even possible if both are the same thing?
#EDIT
Both prefabs have the exactly same components, same scripts, and same values. The script uses private variables to hold all the references, and changes the prefab’s behavior while underwater based on that. So? This means that IF there was an error, or different behavior on each prefab by the script, i would know.