I have one problem and I can’t solve. I can’t rewrite this code from c# to Javacsript.
using UnityEngine;
using System.Collections.Generic;
using SocketIO;
public class Network : MonoBehaviour {
static SocketIOComponent socket;
void Start()
{
socket = GetComponent<SocketIOComponent>();
socket.On("open", OnConnected);
}
void OnConnected(SocketIOEvent e)
{
Debug.Log("connected");
socket.Emit("move");
}
}
I’m reading tutorial on pluralsight about creating game in Unity - Sign In | Pluralsight
Can anyone help with it? I don’t into this languages and I can’t do this - if anyone can rewrite it to me I will be very glad, because I will be have a “template” and I will can rewrite other files.
Yes, I read topics and articles (including this forum)about prescribing and converting c# to Javascript, but I can’t really do this.