PhotonNetwork.RemoveRPCs C# (CSharp) Method

RemoveRPCs() public static method

Remove ALL buffered RPCs of the local player
public static RemoveRPCs ( ) : void
return void
    public static void RemoveRPCs()
    {
        if (!VerifyCanUseNetwork())
        {
            return;
        }

        RemoveRPCs(player);
    }

Same methods

PhotonNetwork::RemoveRPCs ( PhotonPlayer targetPlayer ) : void
PhotonNetwork::RemoveRPCs ( PhotonView view ) : void

Usage Example

Ejemplo n.º 1
0
    //PhotonNetwork function for handling when PlayerLeaves the room
    //need to inherit from MonoBehaviourPunCallbacks to use this

    public override void OnPlayerLeftRoom(Player otherPlayer)
    {
        if (otherPlayer == PhotonNetwork.LocalPlayer && photonView.IsMine && PhotonNetwork.OfflineMode == false)
        {
            PhotonNetwork.RemoveRPCs(PhotonNetwork.LocalPlayer);
        }
    }
All Usage Examples Of PhotonNetwork::RemoveRPCs