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!
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!
0
Comments
-
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.0
-
It makes sense Thank you!0