예제 #1
0
 /// <summary>
 /// Internal method to update the persistent data state(s) from the current animation state.
 /// </summary>
 /// <param name="newState"></param>
 protected void onAnimationStateChange(ROLAnimState newState, bool updateExternal = false)
 {
     animationState = newState;
     persistentData = newState.ToString();
     if (updateDragCube)
     {
         ROLStockInterop.addDragUpdatePart(part);
     }
     if (updateExternal && onAnimStateChangeCallback != null)
     {
         onAnimStateChangeCallback(newState);
     }
 }
예제 #2
0
 /// <summary>
 /// Update the backing persistent data field with the string representation of the current animation state.
 /// </summary>
 private void updatePersistentData()
 {
     persistentData = animationState.ToString();
 }