cant connect unity using documentation language c# it gives me error i hope someone help me iam creating an android game
and its not working hope someone give me a simple script to connect unity game to my player.io game
by MahamedDam123 » May 22nd, 2017, 7:50 pm
by Henrik » May 23rd, 2017, 4:39 am
by MahamedDam123 » May 23rd, 2017, 3:57 pm
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PlayerIOClient;
public class server : MonoBehaviour {
// Setup the Player.IO Client in Unity3D
// "this" is a reference to a MonoBehavior. You could put this
// code in the "Start()" method of a MonoBehaivor
PlayerIOClient.PlayerIO.UnityInit(this);
//Connect to Player.IO
var client = PlayerIO.Connect(
"[Enter your game id here]",
"public",
"user-id",
null,
null
);
}
by Henrik » May 23rd, 2017, 11:17 pm