diff --git a/Assets/Examples/TheFacility/TheFacility.unity b/Assets/Examples/TheFacility/TheFacility.unity index e52166cb..98c8a768 100644 Binary files a/Assets/Examples/TheFacility/TheFacility.unity and b/Assets/Examples/TheFacility/TheFacility.unity differ diff --git a/Assets/Fungus/FungusScript/Scripts/Node.cs b/Assets/Fungus/FungusScript/Scripts/Node.cs new file mode 100644 index 00000000..69214db5 --- /dev/null +++ b/Assets/Fungus/FungusScript/Scripts/Node.cs @@ -0,0 +1,13 @@ +using UnityEngine; +using System.Collections; + +namespace Fungus +{ + + public class Node : MonoBehaviour + { + public Rect nodeRect = new Rect(10, 10, 100, 40); + public string description = ""; + } + +} \ No newline at end of file diff --git a/Assets/Fungus/FungusScript/Scripts/Node.cs.meta b/Assets/Fungus/FungusScript/Scripts/Node.cs.meta new file mode 100644 index 00000000..a3a0e095 --- /dev/null +++ b/Assets/Fungus/FungusScript/Scripts/Node.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 876917146dc4c40f0ba425b6bd6d4e68 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: diff --git a/Assets/Fungus/FungusScript/Scripts/Sequence.cs b/Assets/Fungus/FungusScript/Scripts/Sequence.cs index 2ce68a0a..124f7fdb 100644 --- a/Assets/Fungus/FungusScript/Scripts/Sequence.cs +++ b/Assets/Fungus/FungusScript/Scripts/Sequence.cs @@ -1,6 +1,3 @@ -#if UNITY_EDITOR -using UnityEditor; -#endif using UnityEngine; using System; using System.Collections; @@ -10,12 +7,8 @@ namespace Fungus { [ExecuteInEditMode] - public class Sequence : MonoBehaviour + public class Sequence : Node { - public Rect nodeRect = new Rect(10, 10, 100, 40); - - public string description = ""; - [System.NonSerialized] public Command activeCommand;