Browse Source

Adding Set Draggable command causes null exception error #111

master
chrisgregan 10 years ago
parent
commit
6b3d0a5538
  1. 3
      Assets/Fungus/Sprite/Scripts/Commands/SetCollider.cs

3
Assets/Fungus/Sprite/Scripts/Commands/SetCollider.cs

@ -14,7 +14,7 @@ namespace Fungus
public List<GameObject> targetObjects = new List<GameObject>(); public List<GameObject> targetObjects = new List<GameObject>();
[Tooltip("All objects with this tag will have their collider set active / inactive")] [Tooltip("All objects with this tag will have their collider set active / inactive")]
public string targetTag; public string targetTag = "";
[Tooltip("Set to true to enable the collider components")] [Tooltip("Set to true to enable the collider components")]
public BooleanData activeState; public BooleanData activeState;
@ -56,7 +56,6 @@ namespace Fungus
public override string GetSummary() public override string GetSummary()
{ {
int count = targetObjects.Count; int count = targetObjects.Count;
count += GameObject.FindGameObjectsWithTag(targetTag).Length;
if (activeState.Value) if (activeState.Value)
{ {

Loading…
Cancel
Save