I'm trying to learn how to make an online game using Unity so i'm pretty noob at this.
I'm trying to create an object in run-time, so when I press space bar, a function is called. here are the codes for that function:
The problem with this is that it only creates the object...
Instantiate only creates on the Host
I'm trying to create an object in run-time, so when I press space bar, a function is called. here are the codes for that function:
Code (CSharp):
- [Command]
- void CmdDoFire(){
- NetworkServer.Spawn (o);
- }
Instantiate only creates on the Host