Instantiate via PunRPC vs PunRPC&Coroutine

Options
I wonder what's optimal for a flamethrower:

To instantiate the flames using 1 RPC that calls a Coroutine which instantiates the flames every X seconds, for example, every 0.01 seconds or that every 0.01 seconds when "ctrl" is pressed a RPC is called to instantiate 1 flame.


Thanks!

Comments

  • Gage_IAG
    Options
    I honestly wouldnt use any RPC, id observe perhaps an effects control script on the player and sync the enabling and disabling of the particle gameobject.
  • AndresPL96
    Options
    It makes sense :) Thank you!