diff --git a/Assets/Fungus/VisualScripting/FungusScript.cs b/Assets/Fungus/VisualScripting/FungusScript.cs index cb8372ef..3e46189e 100644 --- a/Assets/Fungus/VisualScripting/FungusScript.cs +++ b/Assets/Fungus/VisualScripting/FungusScript.cs @@ -96,7 +96,8 @@ namespace Fungus.Script bool collision = false; foreach(FungusVariable variable in GetComponents()) { - if (variable == ignoreVariable) + if (variable == ignoreVariable || + variable.key == null) { continue; } diff --git a/Assets/Fungus/VisualScripting/FungusVariable.cs b/Assets/Fungus/VisualScripting/FungusVariable.cs index b1989a82..65bc0d2c 100644 --- a/Assets/Fungus/VisualScripting/FungusVariable.cs +++ b/Assets/Fungus/VisualScripting/FungusVariable.cs @@ -21,6 +21,6 @@ namespace Fungus.Script public class FungusVariable : MonoBehaviour { public VariableScope scope; - public string key; + public string key = ""; } } diff --git a/Assets/Shuttle/ShuttleGame.unity b/Assets/Shuttle/ShuttleGame.unity index e43a687f..7c2d54bc 100644 Binary files a/Assets/Shuttle/ShuttleGame.unity and b/Assets/Shuttle/ShuttleGame.unity differ