Anyone experience PUN2 sending multiple rpc
My game uses Photon for almost 2 years successfully.
Im trying to update my game now. and I updated the Pun2 in assetstore.
But It cause me bug. Im using unity 2019.4 and the latest PUN2 in asset store.
First when player and enemy collide the deduction of life is okay means normal.
but on the second game When I tried to invite my opponent. and have a fight.
when they CLASH the minus of life became multiple its like its being called twice.
I never edited any on my multiplayer codes so its must have been the update.
THIS IS WHAT I OBSERVE:
-if i invite my opponenent for the first time -"NO BUGS"
-if i invite my opponent for the second time - HAS BUGS ( multiple calls on minus life)
-if my opponent invited me to have a fight. - the bug is gone, and its ok.
THE BUG OCCURS WHEN I FIGHT MY OPPONENT MULTIPLE TIMES, and Im the one who invites him, but when he invites me the bug disappeared.
I tried to use some of RPC clear cache but nothing works:
PhotonNetwork.OpCleanActorRpcBuffer (int actorNumber) PhotonNetwork.CleanRpcBufferIfMine (PhotonView view) PhotonNetwork.OpCleanRpcBuffer (PhotonView view)
for cached events in general:
PhotonNetwork.OpRemoveCompleteCacheOfPlayer (int actorNumber) PhotonNetwork.OpRemoveCompleteCache()
PLEASE HELP ME IM STUCK FOR A WEEK :(