Browse Source

Reverted IFungusState interface

master
Christopher 8 years ago
parent
commit
5dcb3fe825
  1. 7
      Assets/Fungus/Scripts/Components/FungusState.cs
  2. 17
      Assets/Fungus/Scripts/Interfaces/IFungusState.cs
  3. 12
      Assets/Fungus/Scripts/Interfaces/IFungusState.cs.meta

7
Assets/Fungus/Scripts/Components/FungusState.cs

@ -10,12 +10,15 @@ namespace Fungus
/// so that the same Flowchart can be displayed while editing & playing.
/// </summary>
[AddComponentMenu("")]
public class FungusState : MonoBehaviour, IFungusState
public class FungusState : MonoBehaviour
{
[SerializeField] protected Flowchart selectedFlowchart;
#region IFungusState implementation
#region Public methods
/// <summary>
/// The currently selected Flowchart.
/// </summary>
public virtual Flowchart SelectedFlowchart { get { return selectedFlowchart; } set { selectedFlowchart = value; } }
#endregion

17
Assets/Fungus/Scripts/Interfaces/IFungusState.cs

@ -1,17 +0,0 @@
using UnityEngine;
using System.Collections;
namespace Fungus
{
/// <summary>
/// Used by the Flowchart window to serialize the currently active Flowchart object
/// so that the same Flowchart can be displayed while editing & playing.
/// </summary>
public interface IFungusState
{
/// <summary>
/// The currently selected Flowchart.
/// </summary>
Flowchart SelectedFlowchart { get; set; }
}
}

12
Assets/Fungus/Scripts/Interfaces/IFungusState.cs.meta

@ -1,12 +0,0 @@
fileFormatVersion: 2
guid: 36cb688eedcc4436780e68405a4ba494
timeCreated: 1474015940
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save