Does the host player always win?

Options
I'm creating a dual racing game where the host player when collides with obstacle has to get lose panel but even though he loses he recieves the win panel and the client player who has completed the task and does not collide with any obstacle recieves lose panel.
Can someone help me out with this as soon as possible?Please...

Answers

  • DarkJoltGames
    Options
    Once the other car collides with the win panel, call an rpc that executes the lose panel code on all computers, like this:

    PhotonView.PunRPC(PhotonTargets.All, "LosePanel");

    Or whatever your code is, and stick a [LosePanel] flag before your lose panel function.