[EditorBrowsable(EditorBrowsableState.Never)]
public AnimationStates AnimationState
{
- private set;
- get;
+ private set
+ {
+ CurrentAnimationState = value;
+ }
+ get
+ {
+ if (CurrentAnimationState == AnimationStates.Playing)
+ {
+ if (PlayState == PlayStateType.Stopped)
+ {
+ CurrentAnimationState = AnimationStates.Stopped;
+ }
+ }
+ return CurrentAnimationState;
+ }
}
#endregion Property
}
private string tag = "NUITEST";
+ private AnimationStates CurrentAnimationState = AnimationStates.Stopped;
#endregion Private
}
}
\ No newline at end of file