Hello,
I wonder what is the best way of spawning my player at a randomly chosen spawn point when the game starts.
I am doing it in a behavior attached to the player in the Start() method. I get the reference to the CharacterRespawner component and invoke its Respawn() method. I also subclassed CharacterRespawner so it can choose a random spawn point from SpawnPointManager. It seems to work but CharacterIK is throwing NullReference exceptions, so I am supposing that this is not the correct way of doing it.
Any clue on what is the correct way of spawning the player at a given spawn point?
I wonder what is the best way of spawning my player at a randomly chosen spawn point when the game starts.
I am doing it in a behavior attached to the player in the Start() method. I get the reference to the CharacterRespawner component and invoke its Respawn() method. I also subclassed CharacterRespawner so it can choose a random spawn point from SpawnPointManager. It seems to work but CharacterIK is throwing NullReference exceptions, so I am supposing that this is not the correct way of doing it.
Any clue on what is the correct way of spawning the player at a given spawn point?