public void UpdateAnimation(string guid, string animationName, string configString, int timestamp)
        {
            var entity = World.Instance.FindEntity(guid);

            //if (!updateskeletons.ContainsKey(animationName))
            //{
            //    BVHSkeleton skeleton = new BVHSkeleton(animationName);
            //    skeleton.LoadBVHFile();
            //    updateskeletons.Add(animationName, skeleton);
            //}
            //updateskeletons[animationName].configUpdateParameter(configString);

            //string bvhHeaderString = ":" + updateskeletons[animationName].GenerateBVHHeaderString() + ":";
            //string frame = updateskeletons[animationName].GenerateCurrentBVHAnimationFrames();
            //string sendString = bvhHeaderString + frame;

            BVHSkeleton skeleton = new BVHSkeleton(animationName);
            skeleton.LoadBVHFile();
            skeleton.configUpdateParameter(configString);

            string bvhHeaderString = ":" + skeleton.GenerateBVHHeaderString() + ":";
            string frame = skeleton.GenerateCurrentBVHAnimationFrames();
            string sendString = bvhHeaderString + frame;

            entity["BVHAnimation"]["bvhframe"].Suggest(sendString);

            //BVHAnimationManager.Instance.StartAnimation(guid, skeleton.getAnimationName(), skeleton);
        }
        public void StartAnimation(string guid, string animationName, string configString, int timestamp)
        {
            var entity = World.Instance.FindEntity(guid);

            if (!animationskeletons.ContainsKey(animationName))
            {
                Console.WriteLine("Try to load bvh file " + animationName);
                BVHSkeleton skeleton = new BVHSkeleton(animationName);
                skeleton.LoadBVHFile();
                Console.WriteLine("Finished reading the file");
                animationskeletons.Add(animationName, skeleton);
            }

            //Console.WriteLine("added animation to ist");
            animationskeletons[animationName].configAnimationParameter(configString);
            //Console.WriteLine("Finished reading the config string");
            //Console.WriteLine("Get in here!");
            BVHAnimationManager.Instance.StartAnimation(guid, animationName, animationskeletons[animationName]);
        }