So, here's the issue I'm having:
+ Start a scene with default player that has inventory items -- In this case, it's revisiting a scene that the player has already been to
+ Do a variable check at scene load to see if default player has finished a task
+ If the player has, then play a small cinematic (dialogue and camera transition) and switch to a different player
+ Play as the 2nd character and finish task (which would set a new variable when you reload the scene to determine which starting character it would be)
+ Switch to 1st character
Result: 1st character no longer has inventory items that he started with (I did not transfer inventory on any of the player switch actions)
Comments
-Start Player 1 in scene A with some items (either carried on start, or given via a Cutscene)
-Switch to scene B and back to A
-Run a Cutscene that switches to Player 2, then back to Player 1 within the same scene
Following those, the Player 1 continues to have the inventory he began with - for me, at least. Do those steps sound correct to you? Which version of Unity and platform?
Without the scene switching, it essentially boils down to switching player, waiting a moment, then switching back in one cutscene, correct? If you can make a test scene that does without everything that doesn't contribute, it may help us isolate the source of this. At the moment, I'm still thinking that the Variable: Check is an aside.