刚体的沉睡

平常的脚本组件都可以通过来下面禁用组件

component.enable = false;

而刚体使用的方法为:

rigidbody.Sleep();//沉睡
rigidbody.WakeUp();//醒来

首页 我的博客
粤ICP备17103704号