Example #1
0
    public void InitializeDialog(int characterIndex)
    {
        var character      = HouseState.Instance.GetRoomState(_curentRoom).CharactersOnLocations[characterIndex];
        var characterState = HouseState.Instance.GetCharacterState(character);

        string dialog = characterState.IsAlive
            ? characterState.CurrentCharacterDefinition.Dialog
            : character.DeathDialog;

        DialogManager.Begin(dialog, character, characterState.IsAlive, character.StandartClip);
    }