//--------------------------------------------------------------------------------------------------------------------------------
        protected override void ThreadFunction()
        {
            while (m_clipMemory == null)
            {
                System.Threading.Thread.Sleep(100);
            }

            MemoryStream         cloudFormattedStream = createWaveFileStream(m_clipMemory);
            AITransactionHandler AITransact           = new AITransactionHandler();

            AITransact.SendDataToCloud(cloudFormattedStream);
        }
        //----------------------------------------------------------------------------------------------
        // for now, we'll pretend that we got a valid model from the controller.
        static public List <GameObject> GetFullModelFromCloud()
        {
            List <GameObject>    fullModel = new List <GameObject>();
            AITransactionHandler me        = new AITransactionHandler();

            // let's get the model from the cloud and parse it into gameobjects.
            string stringModel = me.GetTextDataFromCloud("/v1/GetModel");

            string[] modelLines = stringModel.Split('\n');
            foreach (string line in modelLines)
            {
                GameObject Parsed = ParseModel(line);
                if (Parsed != null)
                {
                    fullModel.Add(Parsed);
                }
            }
            HasNewModel = false;
            return(fullModel);
        }