Duplicated Player prefab when changing scenes
Posted: Sun Feb 12, 2023 3:31 pm
Hello!
I'm having trouble with duplicated Player prefab when changing scenes when using the Dialogue System Trigger Event set with "On Enable".
Use case (RPG style game battle, à la Final Fantasy VII): the battle ends, the player clicks on Exit Battle button, then the button ENABLES a DialogueSystemTriggerEvent on a GameObject. The Event, set on "On Enable", then transports the player prefab back to the previous scene. Now the player prefab is duplicated.
When I'm using the ON TRIGGER option on Dialogue System Trigger Event, I'm fine and dandy.
Example: the player enters a house from the city street, the goes back to city street (using Player Spawnpoint). No duplicate.
Can I get support on this?
Thanks!
I'm having trouble with duplicated Player prefab when changing scenes when using the Dialogue System Trigger Event set with "On Enable".
Use case (RPG style game battle, à la Final Fantasy VII): the battle ends, the player clicks on Exit Battle button, then the button ENABLES a DialogueSystemTriggerEvent on a GameObject. The Event, set on "On Enable", then transports the player prefab back to the previous scene. Now the player prefab is duplicated.
When I'm using the ON TRIGGER option on Dialogue System Trigger Event, I'm fine and dandy.
Example: the player enters a house from the city street, the goes back to city street (using Player Spawnpoint). No duplicate.
Can I get support on this?
Thanks!