mirror of
https://github.com/Ratstail91/Mementos.git
synced 2025-11-29 10:34:27 +11:00
Committed everything
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1c04f2595983345ab86d4ef0eea06dea
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user