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,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Clickable : MonoBehaviour {
public string inkFilename;
void OnMouseDown() {
TextAsset asset;
asset = Resources.Load<TextAsset>("Story/" + inkFilename);
if (asset == null) {
Debug.LogError("Asset file is null");
return;
}
StoryController controller = FindObjectsOfType<StoryController>()[0];
controller.PushInkAsset(asset);
}
}