Ejemplo n.º 1
0
 void Start()
 {
     Khoros.Listen("position", (JSONObject data) => {
         position           = JSONTemplates.ToVector3(data);
         transform.position = position;
     });
 }
Ejemplo n.º 2
0
 void Update()
 {
     if (Khoros.IsConnected)
     {
         JSONObject data = JSONTemplates.FromVector3(transform.position);
         Khoros.Sing("position", data);
     }
 }
Ejemplo n.º 3
0
 public void OnSocketConnect(SocketIOEvent eventData)
 {
     Debug.Log("Socket connected.");
     Khoros.Init(socket, singRoom, listenRoom);
 }