刷新帧的不同控制函数

FixedUpdate

     可以多次调用;

     不饿能用于帧频很高的情况;

Update

      仅一次调用(每帧);

LateUpdate

       每帧调用一次;

Corountine

       用startCoroutine()在执行时间内会一直被调用;

OnGUI

       每帧被调用一次;

补充一下

     Trigger

     当两物体collider撞击时,产生相应反应,比如cutsenes,automatic door opening,displaying tutorial messages

posted @ 2010-09-30 13:29  子非あ鱼  阅读(1330)  评论(1编辑  收藏  举报