WhiteCore.Region.Animation.Animator.Animator C# (CSharp) Method

Animator() public method

public Animator ( IScenePresence sp ) : System
sp IScenePresence
return System
        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);
        }