From 1d4216900297b845c73ef64e0e6535fd053b9326 Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Wed, 13 May 2015 17:17:53 +0100 Subject: [PATCH] Deleted unused SendEvent class Not needed anyway with the new Call Method command. --- .../Flowchart/Scripts/Commands/SendEvent.cs | 63 ------------------- .../Scripts/Commands/SendEvent.cs.meta | 8 --- 2 files changed, 71 deletions(-) delete mode 100644 Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs delete mode 100644 Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs.meta diff --git a/Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs b/Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs deleted file mode 100644 index aa696e36..00000000 --- a/Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs +++ /dev/null @@ -1,63 +0,0 @@ -using UnityEngine; -using System.Collections; -using System.Collections.Generic; -using UnityEngine.Events; - -namespace Fungus -{ - /* - [CommandInfo("Scripting", - "Send Event", - "Send an event to a gameobject in the scene. Use this to call any public method or set public properties on any game object.")] - public class SendEvent : Command - { - public UnityEvent targetEvent; - - public bool stopCurrentFlowchart = false; - - public override void OnEnter() - { - if (targetEvent != null) - { - if (stopCurrentFlowchart) - { - Stop(); - } - - targetEvent.Invoke(); - - if (!stopCurrentFlowchart) - { - Continue(); - } - } - else - { - Continue(); - } - } - - public override string GetSummary() - { - if (targetEvent == null || - targetEvent.GetPersistentEventCount() == 0) - { - return ""; - } - - UnityEngine.Object obj = targetEvent.GetPersistentTarget(0); - if (obj == null) - { - return "Error: No target object selected"; - } - - return obj.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/SendEvent.cs.meta b/Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs.meta deleted file mode 100644 index 3ebd70a2..00000000 --- a/Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 753b649228ad54a909f27b04023be7aa -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: