Beispiel #1
0
    public static bool CheckRegAcc()
    {
        string acc = Inputmgr.GetCache("raccount");

        if (acc.Length < 3 || acc.Length > 12)
        {
            logError(ErrorCode.ERRORCODE_3);
            Inputmgr.GetObj("raccount").GetComponent <InputField>().ActivateInputField();
            return(false);
        }
        logError(ErrorCode.NONE);
        return(true);
    }
Beispiel #2
0
    public static bool CheckRegPwd1()
    {
        string pwd = Inputmgr.GetCache("rpwd");

        if (pwd.Length < 6 || pwd.Length > 12)
        {
            logError(ErrorCode.ERRORCODE_2);
            Inputmgr.GetObj("rpwd").GetComponent <InputField>().ActivateInputField();
            return(false);
        }
        logError(ErrorCode.NONE);
        return(true);
    }