Is it possible?

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

teratosis
Posts: 8
Joined: 20 Oct 2013, 08:51
Location: Austin, Texas

Is it possible?

Postby teratosis » 23 Oct 2013, 08:23

Hi there, I went through the tutorial for SFS and Unity. Everything works. I have is this script from the tutorial, it is written in C#.. http://wiki.unity3d.com/index.php/BOX1_ ... .cs_script

Can the SFS connection part be added to JS instead? Is there such a script already out there? I wrote a login script in Javascript, but would like to add this connection dealy. : :idea:

Any help or suggestions much appreciated.

Thanks.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Is it possible?

Postby Bax » 23 Oct 2013, 13:17

Your question is not very clear, can you please rephrase?
Paolo Bax
The SmartFoxServer Team
teratosis
Posts: 8
Joined: 20 Oct 2013, 08:51
Location: Austin, Texas

Re: Is it possible?

Postby teratosis » 23 Oct 2013, 17:34

The tutorial login script is written in c#, from the wiki page link. I was asking if the SFS connection code that is in c# is available in javaScript form? Because I have made a custom login in script for Unity that is written in js. I want to add the SFS connection code to that js.
teratosis
Posts: 8
Joined: 20 Oct 2013, 08:51
Location: Austin, Texas

Re: Is it possible?

Postby teratosis » 23 Oct 2013, 23:15

Mark this as closed. I will stick with the C# script. Thanks.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Is it possible?

Postby Bax » 24 Oct 2013, 15:14

We provide JavaScript API, but I'm not sure you will be able to use them inside Unity.
Sticking to the C# API is the right choice I believe.
Paolo Bax
The SmartFoxServer Team
teratosis
Posts: 8
Joined: 20 Oct 2013, 08:51
Location: Austin, Texas

Re: Is it possible?

Postby teratosis » 24 Oct 2013, 20:47

Yeah for sure, over on the Unity side, a lot of their documentation is in JS, and at first, all I was finding was JS tutorials. I figured out how to convert the JS elements to c#. So all good. Thanks.

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 21 guests