URGENT: Need help with syncing Zenject and StateMachine after scene division with Photon Fusion

Options

Greetings Photon community,

I'm currently facing a critical issue with syncing Zenject and StateMachine after dividing my game into multiple scenes. Previously, the game ran in a single scene with GRPC networking, but due to changes, I've removed GRPC and split the game into four separate scenes. Unfortunately, this has resulted in broken Zenject bindings and disrupted the flow of the StateMachine when the BattleScene is loaded from Photon Fusion Server, rendering the gameplay non-functional.

Here's a clear description of the problem I'm encountering:

  1. Initially, the game had a StateMachine responsible for triggering various states within a flow, with Zenject bindings properly established.
  2. The networking was handled via GRPC, and the entire game ran in a single scene without any issues.
  3. Now, I've removed GRPC and divided the game into four distinct scenes, one of which is the BattleScene loaded from the Fusion Server.
  4. However, upon loading the BattleScene, all Zenject bindings break, causing the StateMachine's flow to become unsynchronized.
  5. Consequently, none of the gameplay functionalities are operational, making it impossible to utilize any game features.

My primary objective is to sync the StateMachine states from the last called state with the current state after the BattleScene is loaded from the server. Additionally, I need to restore all Zenject bindings to ensure the proper functioning of the game.

As I'm unable to find a viable solution on my own, I humbly request your expert guidance and suggestions to resolve this pressing issue. Any insights, ideas, or potential workarounds would be immensely appreciated.

Thank you kindly for your time and assistance. Your expertise and support will be invaluable in getting the game back on track.