Hello, guys!
Im started my own game with PlayerIO.
I did Authentication in Unity3d and its works fine when i ran it at PC.
But when i built my project for Android and trying to launch it on my Android device thats doesnt work.
Example of my script:
public void LoginIn() {
InfoPanel.SetActive(true);
infoText.text = "Connecting...";
PlayerIO.Authenticate(
"mygameIDhere",
"public",
new Dictionary<string, string> {
{"email", email.text},
{"password", password.text}
},
null,
delegate(Client client) {
infoText.text = "Connected!";
infoText.text = "Loading character...";
client.BigDB.Load("myTableNameHere", playerID, delegate(DatabaseObject result){
if (result == null) {
//Go To Character Creation
infoText.text = "Character not found!";
InfoPanel.SetActive(false);
SceneManager.LoadScene(1);
}
else {
//Load Character
infoText.text = "Character loaded!";
InfoPanel.SetActive(false);
SceneManager.LoadScene(2);
}
}, delegate(PlayerIOError error) {
infoText.text = "Error: " + error.Message;
infoButton.gameObject.SetActive(true);
}
);
},
delegate(PlayerIOError error) {
infoText.text = "Error: " + error.Message;
infoButton.gameObject.SetActive(true);
}
);
}
May be i need to Add some DLL's or different functions?