Exemplo n.º 1
0
 private void UpdateCurrentInputLine(char c)
 {
     // Debug.Log("aa"+currentInputLine);
     if (c == '\b')
     {
         DeleteCharacters();
     }
     else if (c == '\n' || c == '\r')
     {
         string s = currentInputLine.Substring(offset);
         if (hacker.CheckInput(s))
         {
             SendCommand(s);
         }
         else
         {
             error            = hacker.getError();
             currentInputLine = error;
             offset           = currentInputLine.Length;
         }
     }
     else
     {
         currentInputLine += c;
     }
 }