Reputation: 17
I have a multiplayer 2D game made in Unity and I wanted to put some onscreen buttons to be able to control it on the telephone. The problem is that when I put the Event Trigger on the button it uses the function from the script that has to use, but it can't open other functions called in the first one. For example, when I press the FireBullet Buton it should use a function CmdFireBullet() that has in it the function RpcFireBullet(). The function CmdFireBullet() works perfectly, but it does not open the function RpcFirebullet() at all. Any ideeas?
Upvotes: 0
Views: 78
Reputation: 26
There is no RpcFireBullet inside CmdFireBullet Just don't forget to type RpcFireBullet(); inside your CmdFireBullet
Upvotes: 1