Committed everything

This commit is contained in:
2021-06-30 21:39:19 +10:00
commit fcfa8e7213
525 changed files with 49440 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using Ink.UnityIntegration;
using Ink.Runtime;
[CustomEditor(typeof(BasicInkExample))]
[InitializeOnLoad]
public class BasicInkExampleEditor : Editor {
static BasicInkExampleEditor () {
BasicInkExample.OnCreateStory += OnCreateStory;
}
static void OnCreateStory (Story story) {
// If you'd like NOT to automatically show the window and attach (your teammates may appreciate it!) then replace "true" with "false" here.
InkPlayerWindow window = InkPlayerWindow.GetWindow(true);
if(window != null) InkPlayerWindow.Attach(story);
}
public override void OnInspectorGUI () {
Repaint();
base.OnInspectorGUI ();
var realTarget = target as BasicInkExample;
var story = realTarget.story;
InkPlayerWindow.DrawStoryPropertyField(story, new GUIContent("Story"));
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1c04f2595983345ab86d4ef0eea06dea
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: