RpcSecure









How do I use Rpc Secure
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: PhotonView.cs Copy
552     public void RPC(string methodName, PhotonTargets target, params object[] parameters)
553     {
554         RpcSecure(methodName, target, false, parameters);
555     }
File name: PhotonView.cs Copy
578     public void RpcSecure(string methodName, PhotonTargets target, bool encrypt, params object[] parameters)
579     {
580         if(PhotonNetwork.networkingPeer.hasSwitchedMC && target == PhotonTargets.MasterClient)
581         {
582             PhotonNetwork.RPC(this, methodName, PhotonNetwork.masterClient, encrypt, parameters);
583         }
584         else
585         {
586             PhotonNetwork.RPC(this, methodName, target, encrypt, parameters);
587         }
588     }
File name: PhotonView.cs Copy
632     public void RpcSecure(string methodName, PhotonPlayer targetPlayer, bool encrypt, params object[] parameters)
633     {
634         PhotonNetwork.RPC(this, methodName, targetPlayer, encrypt, parameters);
635     }

RpcSecure 129 lượt xem

Gõ tìm kiếm nhanh...