- Home /
Question by
PogyManTV · Dec 26, 2016 at 09:28 PM ·
networkingmultiplayer-networkingrpcbuffer
How to clean buffer after some time?
I mean I have my own way of cleaning buffered RPCs but my question is if this is the right way... Here's the code:
bufferTimer += Time.deltaTime;
if(bufferTimer > bufferTime)
{
Network.RemoveRPCs(networkView.viewID);
bufferTimer = 0;
Debug.Log("Campfire Reloaded Buffer");
}
Thanks for any suggestions ! Merry Christmas! :)
Comment