camelCase
The Case of the Mysterious Camel.
- Reaction score
- 362
I've never used Unity before but I'm on my internship now and am required to learn Unity and basic networking with it. Thing is, I never learned network programming either.
I've been spamming documentation like crazy for the past 3hours and almost have it done..
But there's a problem.
It's probably easier to show it than to explain it, so, I've uploaded the Unity scene file.
-------
Anyways, here's a description of my problem:
I have a client and a server.
The server hosts a "game" and a cube, A, is created.
The client joins the "game" and another cube, B, is created.
When the server moves cube A (with the up key), the change is reflected on the client's screen.
When the client moves cube B, the change is NOT reflected on the server's screen.
So..
I assume that the communication seems to only go one way but I don't know why.
I've tried both observing the Transform component and observing a Script which implements OnSerializeNetworkView() with no luck.
Anyone here know what I'm doing wrong?
Oh, and try to ignore the bad copy-pasta' code; it's a throwaway prototype =x
---------
Actually, do care about the bad code. I don't know how this networking stuff works and that's why my code is horrible =/
I'd like to know a better way to do this.
I've been spamming documentation like crazy for the past 3hours and almost have it done..
But there's a problem.
It's probably easier to show it than to explain it, so, I've uploaded the Unity scene file.
-------
Anyways, here's a description of my problem:
I have a client and a server.
The server hosts a "game" and a cube, A, is created.
The client joins the "game" and another cube, B, is created.
When the server moves cube A (with the up key), the change is reflected on the client's screen.
When the client moves cube B, the change is NOT reflected on the server's screen.
So..
I assume that the communication seems to only go one way but I don't know why.
I've tried both observing the Transform component and observing a Script which implements OnSerializeNetworkView() with no luck.
Anyone here know what I'm doing wrong?
Oh, and try to ignore the bad copy-pasta' code; it's a throwaway prototype =x
---------
Actually, do care about the bad code. I don't know how this networking stuff works and that's why my code is horrible =/
I'd like to know a better way to do this.