clearAnimationData() public method

public clearAnimationData ( ) : void
return void
Ejemplo n.º 1
0
        public void initializeExternal(SSTUAnimData[] animData)
        {
            AnimState prevState = (AnimState)Enum.Parse(typeof(AnimState), persistentState);
            float     time      = prevState == AnimState.STOPPED_START || prevState == AnimState.PLAYING_BACKWARD ? 0 : 1;

            if (controller != null)
            {
                controller.clearAnimationData();
                controller = null;
            }
            controller = new AnimationController(time, animationMaxDeploy);
            controller.addAnimationData(animData);
            controller.restorePreviousAnimationState(prevState, animationMaxDeploy);
            controller.setStateChangeCallback(onAnimationStateChange);
        }
Ejemplo n.º 2
0
 public void reInitialize()
 {
     if (controller != null)
     {
         controller.clearAnimationData();
         initialize();
     }
 }