unity game Developemnt in 24 hours 第17章 Animation

unity3d 新版引入了新的Animation系统, 本章用的是旧系统,18章讲新的。

1. 点击Animations里面的组件,在Inspector中选择Wrap Code,默认是Loop, 可以试试Ping Pong等其他模式

2.通过 transform.animation.Play("idle1"); 代码控制

 

 

posted @ 2014-06-17 23:56  知行合1  阅读(81)  评论(0)    收藏  举报