public Animator (IScenePresence sp) { m_scenePresence = sp; IConfig animationConfig = sp.Scene.Config.Configs ["Animations"]; if (animationConfig != null) { SLOWFLY_DELAY = animationConfig.GetInt ("SlowFlyDelay", SLOWFLY_DELAY); m_useSplatAnimation = animationConfig.GetBoolean ("enableSplatAnimation", m_useSplatAnimation); } //This step makes sure that we don't waste almost 2.5! seconds on incoming agents m_animations = new AnimationSet (DefaultAnimations); }
/// <summary> /// Close out and remove any current data /// </summary> public void Close () { m_animations = null; m_scenePresence = null; }