void Update() { if (Application.loadedLevel != 0 && Application.loadedLevel != 2) { LivesText.text = ("Lives: " + ps.lives); } //Debug.Log("wtf" + switchS + switchF + Application.loadedLevel); if (Application.loadedLevel > 7 || Application.loadedLevel == 0) { HighScoreSurvival.text = ("Survival HS: " + highScoreSurvival); } if (Application.loadedLevel < 8 || Application.loadedLevel == 0) { HighScoreText.text = ("Highscore: " + highScore); } pointsText.text = ("Points: " + score); if (Application.loadedLevel > 7 && Application.loadedLevel != 9) { LivesText2.text = ("Lives: " + ps2.lives2); pointsText2.text = ("Points2 " + score2); } //tu dodamy ze jezeli nie bedzie oby dwóch playerów to app.load level 0; if (score == 10 && !switchS && !switchF && Application.loadedLevel == 1) { switchF = true; f.fadeOn(); } else if (score == 39 && !switchS && !switchF && Application.loadedLevel == 3) { switchF = false; f.fadeOn(); } else if (score == 84 && !switchS && !switchF && Application.loadedLevel == 4) { switchF = false; f.fadeOn(); } else if (score == 188 && !switchS && !switchF && Application.loadedLevel == 5) { switchF = false; f.fadeOn(); } else if (score == 262 && !switchS && !switchF && Application.loadedLevel == 6) { switchF = false; f.fadeOn(); } }
public void Go() { //to jest z dupy //Application.LoadLevel(3); f.fadeOn(); Debug.Log("jestem za waitnload"); }
public void PlayArcade() { f.fadeOn(); }