Browse Source

Reverted IClickable interface

master
Christopher 8 years ago
parent
commit
30f41e29a1
  1. 7
      Assets/Fungus/Scripts/Components/Clickable2D.cs
  2. 18
      Assets/Fungus/Scripts/Interfaces/IClickable2D.cs
  3. 12
      Assets/Fungus/Scripts/Interfaces/IClickable2D.cs.meta

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

@ -13,7 +13,7 @@ namespace Fungus
/// The Game Object must have a Collider or Collider2D component attached.
/// Use in conjunction with the ObjectClicked Flowchart event handler.
/// </summary>
public class Clickable2D : MonoBehaviour, IClickable2D, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler
public class Clickable2D : MonoBehaviour, IPointerClickHandler, IPointerEnterHandler, IPointerExitHandler
{
[Tooltip("Is object clicking enabled")]
[SerializeField] protected bool clickEnabled = true;
@ -88,8 +88,11 @@ namespace Fungus
#endregion
#region IClickable2D implementation
#region Public methods
/// <summary>
/// Is object clicking enabled.
/// </summary>
public bool ClickEnabled { set { clickEnabled = value; } }
#endregion

18
Assets/Fungus/Scripts/Interfaces/IClickable2D.cs

@ -1,18 +0,0 @@
// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
namespace Fungus
{
/// <summary>
/// Detects mouse clicks and touches on a Game Object, and sends an event to all Flowchart event handlers in the scene.
/// The Game Object must have a Collider or Collider2D component attached.
/// Use in conjunction with the ObjectClicked Flowchart event handler.
/// </summary>
public interface IClickable2D
{
/// <summary>
/// Is object clicking enabled.
/// </summary>
bool ClickEnabled { set; }
}
}

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

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