/// <summary> /// Запускает конечный диалог и выдаёт награды /// </summary> public void ApplyAwards() { var placeForTasks = transform.parent; placeForTasks.gameObject.GetComponent <Scenario>().FirstCharacterSprite = CharacterSpritePlace.sprite; placeForTasks.GetComponent <Scenario>() .CreateTaskEndDialog(TaskTools.GetPhrase(), new Award(AwardType.Money, money: Details.AmountToComplete * 10), new Award(AwardType.Reputation, reputation: Details.AmountToComplete * 15) ); var writer = QuickSaveWriter.Create("Tasks"); writer.Delete(Details.ID.ToString()); writer.Commit(); Destroy(gameObject); }