Browse Source

Added Node base class for Fungus Script nodes.

master
chrisgregan 10 years ago
parent
commit
45a94e0e09
  1. BIN
      Assets/Examples/TheFacility/TheFacility.unity
  2. 13
      Assets/Fungus/FungusScript/Scripts/Node.cs
  3. 8
      Assets/Fungus/FungusScript/Scripts/Node.cs.meta
  4. 9
      Assets/Fungus/FungusScript/Scripts/Sequence.cs

BIN
Assets/Examples/TheFacility/TheFacility.unity

Binary file not shown.

13
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 = "";
}
}

8
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:

9
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;

Loading…
Cancel
Save