Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
But if I use this code in another project the animation does not play. What could be the reason for this? I hope somebody can help me to solve this problem.
well if it works in the example and not in your code, then I guess there's a problem with your code. Please post the relevant part of your code that doesn't work.
//Update is called each frame
public virtual void Update(RenderDelegate renderDelegate)
{
if (device.Run()) //If not called each frame, animations will not be played
{
// Update the screen
vdrv.BeginScene(true, true, new Color(255, 0, 0, 0));
// Handle all the rendering
if (renderDelegate != null)
renderDelegate(); //Only in Debug-Mode
else
Render(); //Runs allways in Release-Mode
if (isLevelLoaded)
{
smgr.DrawAll();
}
vdrv.EndScene();
base.Update(); //base-methos is empty!
}
} // Update(renderDelegate)