Browse Source

Deleted unused SendEvent class

Not needed anyway with the new Call Method command.
master
chrisgregan 10 years ago
parent
commit
1d42169002
  1. 63
      Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs
  2. 8
      Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs.meta

63
Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs

@ -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 "<Continue>";
}
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);
}
}
*/
}

8
Assets/Fungus/Flowchart/Scripts/Commands/SendEvent.cs.meta

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 753b649228ad54a909f27b04023be7aa
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
Loading…
Cancel
Save