I am using Unity3d 2018 + Photon Unity Networking . I have some kind of magic with the PhotonView component PhotonView
There is a PhotonView on GameObject , I use it to synchronize the movement of the character. Script - https://pastebin.com/FLx0TKYA
This script also has the RPC_Throw() method
When I call PhotonView.RPC ("RPC_Throw"), a NullPointerException occurs as if there is no PhotonView component, but it exists! I use it in real time to move the character using the Move () method, and in the editor I also see what PhotonView is, the variable is NOT empty. Screen - http://joxi.ru/LmG8KwphwBjOl2
Ie, PhotonView exists for one Move() method , but not for the other (and in the same script).
What is the problem?
PV.RPC("RPC_Throw", RpcTarget.All);- Alexander Danilovsky