protected override void Act() { var avatarObject = actingInScene.GetActor(actorName); characterQuestParchment = avatarObject.GetComponentInChildren <CharacterQuestParchment>(); avatarObject.BroadcastMessage("OnQuestParchmentOpen"); characterQuestParchment.notifyOnClose += OnClosedQuestParchment; }
protected void OnClosedQuestParchment(CharacterQuestParchment questParchment) { questParchment.notifyOnClose -= OnClosedQuestParchment; Close(); }