From 7260f65265a710b8745535ea983967318d42a0c7 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Tue, 14 Apr 2015 12:11:51 +0100 Subject: [PATCH] Deleted Run Flowchart command Should use the Call command instead now. --- .../Scripts/Commands/RunFlowchart.cs | 73 ------------------- .../Scripts/Commands/RunFlowchart.cs.meta | 12 --- 2 files changed, 85 deletions(-) delete mode 100644 Assets/Fungus/Flowchart/Scripts/Commands/RunFlowchart.cs delete mode 100644 Assets/Fungus/Flowchart/Scripts/Commands/RunFlowchart.cs.meta diff --git a/Assets/Fungus/Flowchart/Scripts/Commands/RunFlowchart.cs b/Assets/Fungus/Flowchart/Scripts/Commands/RunFlowchart.cs deleted file mode 100644 index a84114fc..00000000 --- a/Assets/Fungus/Flowchart/Scripts/Commands/RunFlowchart.cs +++ /dev/null @@ -1,73 +0,0 @@ -using UnityEngine; -using UnityEngine.Serialization; -using System.Collections; -using System.Collections.Generic; - -namespace Fungus -{ - /** - * Legacy support for Run Script command - */ - [CommandInfo("Scripting", - "Run Script", - "Obsolete: use Run Flowchart instead")] - public class RunScript : RunFlowchart - {} - - [CommandInfo("Scripting", - "Run Flowchart", - "Start executing another Flowchart.")] - [AddComponentMenu("")] - public class RunFlowchart : Command - { - [FormerlySerializedAs("targetScript")] - [Tooltip("Reference to another Flowchart to execute")] - public Flowchart targetFlowchart; - - [FormerlySerializedAs("targetSequence")] - [Tooltip("Name of block to execute in target Flowchart")] - public string targetBlockName; - - [FormerlySerializedAs("stopCurrentSequence")] - [Tooltip("Stop executing the current block before executing the new Flowchart")] - public bool stopCurrentBlock = true; - - public override void OnEnter() - { - if (targetFlowchart != null) - { - if (stopCurrentBlock) - { - Stop(); - } - - targetFlowchart.ExecuteBlock(targetBlockName); - - if (!stopCurrentBlock) - { - Continue(); - } - } - else - { - Continue(); - } - } - - public override string GetSummary() - { - if (targetFlowchart == null) - { - return ""; - } - - return targetFlowchart.name; - } - - public override Color GetButtonColor() - { - return new Color32(235, 191, 217, 255); - } - } - -} \ No newline at end of file diff --git a/Assets/Fungus/Flowchart/Scripts/Commands/RunFlowchart.cs.meta b/Assets/Fungus/Flowchart/Scripts/Commands/RunFlowchart.cs.meta deleted file mode 100644 index 5a32fb20..00000000 --- a/Assets/Fungus/Flowchart/Scripts/Commands/RunFlowchart.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: 9ed78eb6565e44839b4be415cd2866dd -timeCreated: 1427712579 -licenseType: Free -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: