void Awake() { Config pKey = new Config(); this.privateCode = pKey.PrivateKey; highscoreDisplay = GetComponent <DisplayHighScores>(); instance = this; }
void Awake() { highscoreDisplay = GetComponent <DisplayHighScores> (); //instance = this; /*AddNewHighscore("Ashik", 50); * AddNewHighscore();*/ AddNewHighscore(PlayerPrefs.GetString("USER_NAME"), PlayerPrefs.GetInt("USER_BEST_SCORE")); }
public void SubtractLives(int lives) { if (lives != 0) { Camera.main.GetComponent <ScreenShake>().Shake(.25f, .25f); } _lives -= lives; if (_lives <= 0) { SceneManager.LoadScene("Game Over Screen"); DisplayHighScores.compareScores(); } }
void Awake() { highScoresDisplay = GetComponent <DisplayHighScores>(); //StartCoroutine(uploadToDB("Cyrus", 503, "LRxxlQV0vECmFOqIXZeiRAHn3Ssp-A2k-dyBd4sfpmTg", "574ba3f08af603062c13d36a")); //StartCoroutine(uploadToDB("Is", 504, "LRxxlQV0vECmFOqIXZeiRAHn3Ssp-A2k-dyBd4sfpmTg", "574ba3f08af603062c13d36a")); //StartCoroutine(uploadToDB("Handsom", 505, "LRxxlQV0vECmFOqIXZeiRAHn3Ssp-A2k-dyBd4sfpmTg", "574ba3f08af603062c13d36a")); //StartCoroutine(uploadToDB("Cyrus", 703, "vGVXU2qcykyGRp9HPaqVRw_csdbPY0vkyXawHvsRLaCw", "574bbc738af603062c13e637")); //StartCoroutine(uploadToDB("Is", 704, "vGVXU2qcykyGRp9HPaqVRw_csdbPY0vkyXawHvsRLaCw", "574bbc738af603062c13e637")); //StartCoroutine(uploadToDB("Handsom", 705, "vGVXU2qcykyGRp9HPaqVRw_csdbPY0vkyXawHvsRLaCw", "574bbc738af603062c13e637")); //StartCoroutine(uploadToDB("Cyrus", 903, "xEi9Ao5V7kik_iP21rK-Zgbc5txWD6U0qhwrIdiJ-EkA", "574bbca18af603062c13e671")); //StartCoroutine(uploadToDB("Is", 904, "xEi9Ao5V7kik_iP21rK-Zgbc5txWD6U0qhwrIdiJ-EkA", "574bbca18af603062c13e671")); //StartCoroutine(uploadToDB("Handsom", 905, "xEi9Ao5V7kik_iP21rK-Zgbc5txWD6U0qhwrIdiJ-EkA", "574bbca18af603062c13e671")); }
//Methoids void Awake() { instance = this; highscoreDisplay = GetComponent <DisplayHighScores> (); addHighScore = GetComponent <AddHighScore> (); }
void Awake() { instance = this; highscoreDisplay = GetComponent<DisplayHighScores>(); }
void Awake() { //AddNewHighscore("Joshua", 200); instance = this; highscoresDisplay = GetComponent<DisplayHighScores>(); }
//when the class runs the awake function gets the high scores from dreamlo and ads it to Display void Awake() { Display = GetComponent <DisplayHighScores>(); instance = this; }
private void Awake() { display = GetComponent <DisplayHighScores>(); }
void Awake() { highscoresDisplay = GetComponent <DisplayHighScores> (); }