Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

TrueSyncBehaviours priority

$
0
0
Hi Erick.

I saw that in TrueSyncManager, in initialize, there's call FindObjectsOfType in order to find all true sync behaviors.
By Unity doc, you can't assume the ordering of the returned arrays.

So, if I have 2 TrueSyncBehaviour that consume Stamina, could happen:

- Player 0
--> run Behaviour A and cosume X energy
--> run Behaviour B and does not find enough energy to do the action

- Player 1
--> run Behaviour B and consume Y energy
--> run Behaviour A and does not find enough energy to do the action

Is this possible, right?

Have you ever thought a smart solution for problem like this? A sort of priority on Behaviours?

Thank you,
Andrea.

Viewing all articles
Browse latest Browse all 15755

Trending Articles