photon服务端总体来说是一个中转站,给服务端添加RPC函数的时候不用在服务端添加,这一点和unet不一样
1.判断玩家是否为本地玩家
m_PhotonView = GetComponent<PhotonView>(); m_PhotonView.isMine=true/false;