Beispiel #1
0
 private void OnTriggerExit2D(Collider2D collision)
 {
     //  if (collision.gameObject.tag == "Door") {
     message.Hide();
     // }
     if (collision.gameObject.tag == "FightZone")
     {
         dialogSystem.Show("GiveUp.txt");
         this.transform.parent.transform.position = collision.transform.position;
     }
 }
Beispiel #2
0
    public void Add(Quest quest)
    {
        if (this.GetByTag(quest.Tag) != null)
        {
            return;
        }
        quests.Add(quest);
        message.Hide();
        if (!quest.IsFinished)
        {
            message.Show("Задание: " + quest.Description);

            ActiveQuests++;
        }
        if (demonstrator.gameObject.activeSelf)
        {
            demonstrator.Hide();
            demonstrator.Show();
        }
    }