예제 #1
0
 /// <summary>
 /// Accept按钮单击回调
 /// </summary>
 public void AcceptButtonClick()
 {
     QuestManager.Instance().questState = QuestManager.QuestState.ACCEPT;
     if (QuestManager.Instance().questState == QuestManager.QuestState.ACCEPT)
     {
         ZombieSpawner.Instance().SpawnZombieByType(questZombieIndex);
         quest_fox_content1.SetActive(false);
         quest_fox_content2.SetActive(true);
         acceptButton.SetActive(false);
         cancelButton.SetActive(false);
         okButton.SetActive(true);
     }
 }
예제 #2
0
 /// <summary>
 /// Again按钮单击回调
 /// </summary>
 public void AgainButtonClick()
 {
     ZombieSpawner.Instance().SpawnZombieByType(questZombieIndex);
     Hide();
 }