Character Info / Speaker Info Wrong?
Posted: Sat Apr 10, 2021 7:20 pm
Hello, i have a bug in my game with a script that triggers every time the speaker swaps.
I have narrowed down the bug. The problem is that when the script is called - the speaker info of the currently speaking NPC returns the Player's transform instead of it's own. o_O
Any idea of what could cause this? If it helps, the NPC is walking towards the player (through Unity's built in NavMesh) but the NPC will stop before it reaches the exact player position.
I have narrowed down the bug. The problem is that when the script is called - the speaker info of the currently speaking NPC returns the Player's transform instead of it's own. o_O
Any idea of what could cause this? If it helps, the NPC is walking towards the player (through Unity's built in NavMesh) but the NPC will stop before it reaches the exact player position.