|
I have an array of array of message that I need to send to the server, Unfortunately, I need to code the server module on C#. So what I'm asking is which data structure should correspond to this data structure My code is more or less as such: Now msgPacker's clas is the class written in C#, so I'm confused how I'm gonna make the method signature for it? I definitely can't make on the script, since C# doesn't have Array class. So which data type should I use to correspond to the data type array in javascript? Do I have any other choice than reworking on the game engine's message system so that It process an array of string? (
(comments are locked)
|
|
Google msdn csharp List
(comments are locked)
|
|
You could write But if I were you I'd use another approach to pack messages and send them over the network. You should checkout the Network View from Unity and the RPC functioanlity that you can use.
(comments are locked)
|
