 		[Inline]
 		final public function advanceTime(time:Number):void
 		{
-			if (_state is IAnimatable)
-			{
-				IAnimatable(_state).advanceTime(time);
+			// 检查状态是否也需要 advanceTime
+			if (stateAnimatable)
+			{
+				stateAnimatable.advanceTime(time);
 			}
 			// 计算速度和位置
 			velocity.x += acceleration.x * time;

			state = createState(IdleState);
		}

		private var _state:AbstractObjectState;

		/**

		 * 下一次切换动作时，是否显示鬼影
		 */
		public var isShowGhost:Boolean;

		public var hitBox:Box = new Box();

		public var attackBox:Box = new Box();
	}
}
