diff --git a/Assets/Fungus/Flowchart/Scripts/FungusState.cs b/Assets/Fungus/Flowchart/Scripts/FungusState.cs
index 65438659..a530bb1f 100644
--- a/Assets/Fungus/Flowchart/Scripts/FungusState.cs
+++ b/Assets/Fungus/Flowchart/Scripts/FungusState.cs
@@ -13,6 +13,11 @@ namespace Fungus
public class FungusState : MonoBehaviour
{
[SerializeField] protected Flowchart selectedFlowchart;
+
+ #region IFungusState implementation
+
public virtual Flowchart SelectedFlowchart { get { return selectedFlowchart; } set { selectedFlowchart = value; } }
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/Assets/Tests/Lua/IFungusState.cs b/Assets/Tests/Lua/IFungusState.cs
new file mode 100644
index 00000000..31456586
--- /dev/null
+++ b/Assets/Tests/Lua/IFungusState.cs
@@ -0,0 +1,17 @@
+using UnityEngine;
+using System.Collections;
+
+namespace Fungus
+{
+ ///
+ /// Used by the Flowchart window to serialize the currently active Flowchart object
+ /// so that the same Flowchart can be displayed while editing & playing.
+ ///
+ public interface IFungusState
+ {
+ ///
+ /// The currently selected Flowchart.
+ ///
+ Flowchart SelectedFlowchart { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Assets/Tests/Lua/IFungusState.cs.meta b/Assets/Tests/Lua/IFungusState.cs.meta
new file mode 100644
index 00000000..50745bf6
--- /dev/null
+++ b/Assets/Tests/Lua/IFungusState.cs.meta
@@ -0,0 +1,12 @@
+fileFormatVersion: 2
+guid: 36cb688eedcc4436780e68405a4ba494
+timeCreated: 1474015940
+licenseType: Free
+MonoImporter:
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant: