Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (enemyCurrentHealth <= 0)
     {
         theQM.enemyKilled = enemyQuestname;
         Destroy(gameObject);
         thePlayerStats.AddExperience(expToGive);
         thePlayer2Stats.AddExperience(expToGive);
     }
 }
Пример #2
0
 public void EndQuest()
 {
     Player2.AddExperience(ExpToGive);
     Player1.AddExperience(ExpToGive);
     theQM.ShowQuestText(endText);
     if (chainQuest)
     {
         theQM.quests[nextQuestNumber].gameObject.SetActive(true);
         theQM.quests[nextQuestNumber].StartQuest();
     }
     theQM.questCompleted [questNumber] = true;
     gameObject.SetActive(false);
 }