Browse Source

Fixed variable key string being null

master
chrisgregan 10 years ago
parent
commit
5dc4c64b54
  1. 3
      Assets/Fungus/VisualScripting/FungusScript.cs
  2. 2
      Assets/Fungus/VisualScripting/FungusVariable.cs
  3. BIN
      Assets/Shuttle/ShuttleGame.unity

3
Assets/Fungus/VisualScripting/FungusScript.cs

@ -96,7 +96,8 @@ namespace Fungus.Script
bool collision = false; bool collision = false;
foreach(FungusVariable variable in GetComponents<FungusVariable>()) foreach(FungusVariable variable in GetComponents<FungusVariable>())
{ {
if (variable == ignoreVariable) if (variable == ignoreVariable ||
variable.key == null)
{ {
continue; continue;
} }

2
Assets/Fungus/VisualScripting/FungusVariable.cs

@ -21,6 +21,6 @@ namespace Fungus.Script
public class FungusVariable : MonoBehaviour public class FungusVariable : MonoBehaviour
{ {
public VariableScope scope; public VariableScope scope;
public string key; public string key = "";
} }
} }

BIN
Assets/Shuttle/ShuttleGame.unity

Binary file not shown.
Loading…
Cancel
Save