i have problem to sync a value like health float,
in case i have a tower and player can attack the tower.
the problems (Networking):
player1 join and attack tower until tower health as 90percent, and then…player2 join too, and have actually same tower as 90percent health,
but…while player2 attack tower until 60percent health’stower, the player1 side, the tower not changes about same tower health.
The point of my reply was: You want to call the RPC method on all clients - including the local one. It informs everyone about the damage, right? It gets sent by whoever hit that turret in your case. So you don’t have to check “isMine”.
hi @tobiass , vry thanks for response.
u right about “Don’t call RPC() in the method that has [RPC] in that case.” im get it as solution as worked.
honestly im develope an moba game like LoL, i know i just a newbie about unity networking and i see photon is better than standard networking of unity.
i have any instant to test (i was send it to my testers)
i save them in Dropbox - Error - Simplify your life (using photon cloud as asia server)
is a peer to peer networking? im using PUN free to test, and ive plan to purchase pun+.
cos testers said that any problem in network
PUN+ does not improve the network connections. It just uses a different way on Android and iOS to access the sockets of the device. Aside from that, communication-wise it’s the same as PUN Free. Of course, you also get a 100 CCU Photon Cloud subscription for a one-time fee, which is not entirely bad.
PUN is not peer to peer.