Skip to content

Instantly share code, notes, and snippets.

@videlais
Created July 8, 2019 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save videlais/414ef8067638fb9f7aa8124ca08611bf to your computer and use it in GitHub Desktop.
Save videlais/414ef8067638fb9f7aa8124ca08611bf to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Ink.Runtime;
public class InkExample : MonoBehaviour
{
private Story story;
public TextAsset inkJSONAsset;
// Start is called before the first frame update
void Start()
{
story = new Story(inkJSONAsset.text);
Debug.Log(story.Continue());
}
// Update is called once per frame
void Update()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment