public bool Compile(List <string> scope) { if (toggle.isOn) { return(vvm.Compile(scope)); } else { return(TMPinput.text != "" && TMPinput.text != null); } }
public override bool Compile() { List <string> scope = VariableManager.GetScope(this.GetComponent <RectTransform>()); bool noError = true; if (!(uiText.text != "---")) { ErrorLogManager.instance.CreateError("Bloco não inicializado corretamente"); noError = MarkError(false); } if (!var.Compile(scope)) { ErrorLogManager.instance.CreateError("Variavel nao existe no escopo deste bloco"); noError = MarkError(false); } MarkError(noError); return(noError); }
private bool CheckVars() { List <string> scope = VariableManager.GetScope(this.GetComponent <RectTransform>()); return(var.Compile(scope) && val.Compile(scope)); }