Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / Dialogue / StoryData.cs
@Rackday Rackday on 29 Oct 349 bytes Major Update
using Ink.Runtime;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "New StoryData", menuName = "Story/StoryData")]
public class StoryData : ScriptableObject
{
    [SerializeField] private TextAsset dialogueJson;
    public Story GetStory() => new Story(dialogueJson.text);
}