Well I am making a multiplayer 2D space shooter game and the player is supposed to shoot at a fixed rate when the screen is touched/held. It worked normally but when I began converting the game to multiplayer, the CmdShoot method does not work. (although it works without the invokeRepeat)… I tried to use coroutine but it said Command methods cannot be coroutines… so how should i shoot at a fixed rate then?
InvokeRepeat calls the function by a string name. That wont work UNet actions like Command and ClientRpc.
You can call command from inside a coroutine.