AnimationState clipState = _gameObject.animation["animationName"];
if(clipState != null){
if(obverse) {
_gameObject.animation.Play (clipState.name);
clipState.speed = 1f;
clipState.time = 0f; }
else // reverse {
_gameObject.animation.Play (clipState.name);
clipState.speed = -1f;
clipState.time = clipState.length; }}


136

被折叠的 条评论
为什么被折叠?



