// This button script will activate if there are more levels to be played, and the player has not reached game over public void ContinueToNextLevel() { // if negative impact, then bad message // if positive impact, then good message posMessage = "Your actions have positively influenced Evandria!"; negMessage = "Your actions have negatively influenced Evandria."; // Determines what message the player will see depending on the influence of the candidate on Evandria if (impact >= 0) { message = posMessage; } else { message = negMessage; } continueCanvasScript.continueText.text = message; continueCanvasScript.currentScore.text = "Your current score is: " + EvandriaUpdate.score.ToString(); continueCanvasScript.continuePanel.SetActive(true); // Show achievement for passing level 1 if (day == 1) { achievementScript = FindObjectOfType <AchievementScript>(); achievementScript.triggerAchievement(AchievementScript.Achievement.DecisionSingle); } }
void CollectBNEAlbum(Collider2D coinCollider) { Instantiate(BNEParticle, this.transform.position, Quaternion.identity); BNEAlbums++; if (BNEAlbums == 40) { AchievementScript.Achieve("40Albums"); } else if (BNEAlbums == 400) { AchievementScript.Achieve("400Albums"); } Destroy(coinCollider.gameObject); }
// This button script will activate when the player places his final decision on the third/final level public void FinalLevelExitScreen() { message = EvandriaUpdate.score.ToString(); continueCanvasScript.congratulationsText.text = message; continueCanvasScript.congratulationsPanel.SetActive(true); // Show achievement for passing final level (level 3) if (day == 3) { achievementScript = FindObjectOfType <AchievementScript>(); achievementScript.triggerAchievement(AchievementScript.Achievement.DecisionAll); } }
// Use this for initialization void Start() { achievementScript = FindObjectOfType <AchievementScript>(); }
// Use this for initialization void Start() { journal = new List <Clue>(); achievements = FindObjectOfType <AchievementScript>(); }