Вот код:
Код
private void Update()
{
if (_photonView.IsMine)
//тут ещё код управления...
....
if (Input.GetKeyDown(KeyCode.E)&& BlockPick!=null)
{
photonView.RPC("PickUp", RpcTarget.AllBuffered);
}
}
}
[PunRPC]
void PickUp()
{
PhotonNetwork.Destroy(BlockPick);
}
У меня ругается на клиенте:
Код
Failed to 'network-remove' GameObject. Client is neither owner nor MasterClient taking over for owner who left: View 393 on Stone(Clone) (scene)