示例#1
0
    public void SaveProgress()
    {
        var error     = false;
        var errorText = "";

        if (String.IsNullOrEmpty(startUpInputField1.text))
        {
            errorText += "Enter Progress in Input 1";
            error      = true;
        }

        if (String.IsNullOrEmpty(startUpInputField2.text))
        {
            errorText += "Enter Configuration in Input 2";
            error      = true;
        }
        startUpText.text = errorText;

        if (!error)
        {
            PROBA.SaveUserProgress(startUpInputField1.text, startUpInputField2.text);
        }
    }