void CreateAnimationController()
{
MapObjectAttachedMesh attachedMesh = null;
foreach( MapObjectAttachedObject attachedObject in AttachedObjects )
{
attachedMesh = attachedObject as MapObjectAttachedMesh;
if( attachedMesh != null )
break;
}
if( attachedMesh == null )
return;
MeshObject meshObject = attachedMesh.MeshObject;
if( meshObject == null )
return;
if( meshObject.AnimationStates == null )
return;
animationController = new MeshObjectAnimationController( meshObject, animationsBlendingTime );
}