Пример #1
0
 static CodingImplementaion()
 {
     //Arrange
     baseController = new CodingController
     {
         Request       = new HttpRequestMessage(),
         Configuration = new HttpConfiguration()
     };
 }
Пример #2
0
    void Update()
    {
        if (frameDelay-- <= 0)
        {
            frameDelay = 30;
        }
        else
        {
            return;
        }

        if (encodingText != null)
        {
            destinationText.text = CodingController.Encode(encodingText);
        }
        if (decodingText != null)
        {
            try { destinationText.text = CodingController.Decode(decodingText); } catch { }
        }

        encodingText = decodingText = null;
    }