public void PlayObjectAnimation( MapObject obj, string animationName )
{
if( obj == null )
Log.Fatal( "CutSceneManager: PlayObjectAnimation: obj == null." );
if( obj.IsSetDeleted )
return;
//Dynamic specific
Dynamic dynamic = obj as Dynamic;
if( dynamic != null )
{
dynamic.SetForceAnimation( animationName, true );
return;
}
//Add additional classes here
//...
//The class is not supported
Log.Fatal( "CutSceneManager: PlayObjectAnimation: The class \"{0}\" is not supported.",
obj.GetType().Name );
}