Esempio n. 1
0
 public bool Compile(List <string> scope)
 {
     if (toggle.isOn)
     {
         return(vvm.Compile(scope));
     }
     else
     {
         return(TMPinput.text != "" && TMPinput.text != null);
     }
 }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
    private bool CheckVars()
    {
        List <string> scope = VariableManager.GetScope(this.GetComponent <RectTransform>());

        return(var.Compile(scope) && val.Compile(scope));
    }