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; } }
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(); } }