你没有用RPC发送命中消息。使用时可以同步健康 OnPhotonSerializeView :
OnPhotonSerializeView
public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info) { if (stream.IsWriting) { stream.SendNext(Health); } else { Health = (float)stream.ReceiveNext(); } }
我做了一个例子 Photon为我的github初学者