This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <vector> | |
#include <map> | |
#include <stdexcept> | |
template<typename TOwner> | |
class StateMachine { | |
public: | |
#pragma region State Class | |
class State { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor.AssetImporters; | |
using System.IO; | |
[ScriptedImporter(1, "lua")] | |
public class LuaImporter : ScriptedImporter | |
{ | |
public override void OnImportAsset(AssetImportContext ctx) | |
{ | |
var text = File.ReadAllText(ctx.assetPath); |