public CompanionState(CompanionData data)
 {
     id        = data.id;
     this.data = data;
     locked    = !data.openByDefault;
     dialogues = new List <SFDialogue>();
     for (int i = 0; i < data.dialogueJsons.Count; i++)
     {
         dialogues.Add(new SFDialogue());
     }
 }
        public void Populate(CompanionData companion)
        {
            nameText.text = companion.name;
            if (companion.formattedCharacteristics == null)
            {
                companion.formattedCharacteristics = $"<b>Класс:</b> {companion.klass}\n<b>Предмет:</b> {companion.gameItem}\n<b>Особенный навык:</b> {companion.skill}\n<b>Уязвимость:</b> {companion.vulnerability}\n<b>Цель:</b> {companion.goal}";
            }
            characteristics.text = companion.formattedCharacteristics;
            description.text     = companion.description;

            float esw    = LayoutManager.Instance.esw;
            var   margin = LayoutManager.Instance.defaultMargins;

            characteristics.fontSize = esw;
            characteristics.margin   = margin;

            description.fontSize = esw;
            description.margin   = margin;
        }