About wifi problem

i want 2 develop a multiplayer game on iphone,but i don’t know how 2 do it,please tell me some information,4 example,which function or class should i use or is there any wifi example i should use?

  1. I assume you own Unity iPhone Advanced? Because iPhone Basic has no networking support

  2. Networking is pure .NET based, not through Unity functions.

What you are looking for is the usage of sockets (UDP or TCP), the MSDN documentation as well as hundreds of pages on the web contain more in formation on that.

Just search for Socket C#

but i work on it 4 a long and havn’t any prograss,could show some basic demo for me,thank you very much

If you understand how Sockets work, you won’t have much of a problem anymore.

If you need help understanding sockets, search for C# socket tutorials. There are masses of them.

i want 2 communicate c# with js,so i can use the socket,what should i do

You may want to code all sockets and networking routine in C#. As soon as you have networking layer, you can call appropriate functions from your JS scripts.

As an alternative you can use Objective-C and code some kind of plugin. It depends on your requirements and needs.

Just do that.
write the communication layer in C# and put all stuff into the plugins folder, then you can use it as if it was a regular part of unity from within C# or JS.