Hey, I have two players in my game, using a single prefab. I use a switch statement to keep track of which player is Player 1 and which one is Player 2.
I then have two spawn points set in the game that the players are to spawn at. Player 1 always spawns at the correct location. However, player 2 always spawns at 0,0,0 regardless of the fact it's assigned spawn point 2.
If someone could look over my script and point out what I did wrong, I would highly appreciate it.
[Fixed]Spawn Ignoring Assigned Transform Position
I then have two spawn points set in the game that the players are to spawn at. Player 1 always spawns at the correct location. However, player 2 always spawns at 0,0,0 regardless of the fact it's assigned spawn point 2.
If someone could look over my script and point out what I did wrong, I would highly appreciate it.
Code (CSharp):
- using...