// Start is called before the first frame update void Start() { if (databaseUtils == null) { databaseUtils = new Database_Utils(); } }
void OnEnable() { if (databaseUtils == null) { databaseUtils = new Database_Utils(); } InitLevels(); }
// Start is called before the first frame update void Start() { dialogText.SetActive(false); if (databaseUtils == null) { databaseUtils = new Database_Utils(); } }
public void UpdateLadderboards() { // This function is called once when entering ladderboards Debug.Log("Get ladderboards"); if (databaseUtils == null) { databaseUtils = new Database_Utils(); } UpdatePlayerCredentials(); StartCoroutine(RetrieveTopScores()); }
// Start is called before the first frame update void Start() { dialogText.SetActive(false); if (PlayerPrefs.GetInt("playerId") != 0 && PlayerPrefs.GetString("playerName") != "") { // Jump to LevelsScreen - Exit from level background_LoginScreen.SetActive(false); background_LevelsScreen.SetActive(true); } if (databaseUtils == null) { databaseUtils = new Database_Utils(); } }
private IEnumerator updateScore(int playerId, int worldId, int finalScore) { string playerName = PlayerPrefs.GetString("playerName"); if (!playerName.Equals("Guest")) { Database_Utils databaseUtils = new Database_Utils(); CoroutineWithData cd = new CoroutineWithData(this, databaseUtils.UpdateScore(playerId, worldId, finalScore)); yield return(cd.coroutine); string updateScoreReceivedMessage = (string)cd.result; if ("0".Equals(updateScoreReceivedMessage)) { Debug.Log("Player score updating has been successfully executed"); } else { Debug.LogError(updateScoreReceivedMessage); } } }
string K2_BA = "K2_BA"; // #endregion Fields #region Constructors public DBScripts() { databaseConnection = new Database_Utils(); //faceRecognitionAddEntries("D:\\CASIA-3D-FaceV1\\CASIA-3D-FaceV1\\3D-Face-BMP"); }