I have this code
using UnityEngine;
using System.Collections;
public class GameJoltAPIManager : MonoBehaviour {
public int gameID;
public string privateKey;
public string userName;
public string userToken;
void Awake () {
DontDestroyOnLoad ( gameObject );
GJAPI.Init ( gameID, privateKey );
GJAPI.Users.Verify ( userName, userToken );
}
void OnEnable () {
GJAPI.Users.VerifyCallback += OnVerifyUser;
}
void OnDisable () {
// Use this if you use the API v1.2.x
GJAPI.Users.VerifyCallback -= OnVerifyUser;
// Use this if you use the API v1.3.x
if (GJAPI.Instance != null)
{
GJAPI.Users.VerifyCallback -= OnVerifyUser;
}
}
void OnVerifyUser ( bool success ) {
if ( success ) {
Debug.Log ( "Yepee!" );
}
else {
Debug.Log ( "Um... Something went wrong." );
}
}
}
And i get Errors with every line of code there starts with " GJAPI " anyone who knows how to solve this?