Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / Dialogue / StoryData.cs
@Rackday Rackday on 29 Oct 349 bytes Major Update
  1. using Ink.Runtime;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. [CreateAssetMenu(fileName = "New StoryData", menuName = "Story/StoryData")]
  7. public class StoryData : ScriptableObject
  8. {
  9. [SerializeField] private TextAsset dialogueJson;
  10. public Story GetStory() => new Story(dialogueJson.text);
  11. }