本文整理汇总了C#中Bone.arriveAtFrame方法的典型用法代码示例。如果您正苦于以下问题:C# Bone.arriveAtFrame方法的具体用法?C# Bone.arriveAtFrame怎么用?C# Bone.arriveAtFrame使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bone
的用法示例。
在下文中一共展示了Bone.arriveAtFrame方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FadeIn
public void FadeIn(Bone bone, AnimationState animationState, TransformTimeline timeline)
{
_bone = bone;
_animationState = animationState;
_timeline = timeline;
_originTransform = _timeline.OriginTransform;
_originPivot = _timeline.OriginPivot;
//_originTransform.copy(_timeline.originTransform);
/*
var bLRX:Number = _bone.origin.skewX + _bone.offset.skewX + _bone._tween.skewX;
var bLRY:Number = _bone.origin.skewY + _bone.offset.skewY + _bone._tween.skewY;
_originTransform.skewX = bLRX + TransformUtils.formatRadian(_originTransform.skewX - bLRX);
_originTransform.skewY = bLRY + TransformUtils.formatRadian(_originTransform.skewY - bLRY);
*/
_tweenTransform = false;
_tweenColor = false;
_totalTime = _animationState.TotalTime;
Transform.X = 0;
Transform.Y = 0;
Transform.ScaleX = 0;
Transform.ScaleY = 0;
Transform.SkewX = 0;
Transform.SkewY = 0;
Pivot.X = 0;
Pivot.Y = 0;
_durationTransform.X = 0;
_durationTransform.Y = 0;
_durationTransform.ScaleX = 0;
_durationTransform.ScaleY = 0;
_durationTransform.SkewX = 0;
_durationTransform.SkewY = 0;
_durationPivot.X = 0;
_durationPivot.Y = 0;
_currentFrame = null;
switch(_timeline.FrameList.Count)
{
case 0:
_bone.arriveAtFrame(null, this, _animationState, false);
_updateState = 0;
break;
case 1:
_updateState = -1;
break;
default:
_updateState = 1;
break;
}
}