摘要: 阅读全文
posted @ 2017-09-22 20:12 朋丶Peng 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-09-08 23:58 朋丶Peng 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 或 ||与 &&非 ! 逻辑或 | 逻辑与 & 逻辑非 ~ 阅读全文
posted @ 2017-09-08 23:52 朋丶Peng 阅读(8240) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-09-08 10:29 朋丶Peng 阅读(770) 评论(0) 推荐(0) 编辑
摘要: 使用 Invoke() 方法需要注意 3点: 使用 Invoke() 方法需要注意 3点: 1 :它应该在 脚本的生命周期里的(Start、Update、OnGUI、FixedUpdate、LateUpdate)中被调用; 1 :它应该在 脚本的生命周期里的(Start、Update、OnGUI、F 阅读全文
posted @ 2017-09-07 09:21 朋丶Peng 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-09-01 23:01 朋丶Peng 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Destroy(Object obj, float t = 0.0F); 删除一个游戏对象,组件或者资源. 物体obj现在被销毁或在指定了t时间过后销毁。如果obj是组件,它将从GameObject销毁组件component。如果obj是GameObject它将销毁GameObject全部它的组件和 阅读全文
posted @ 2017-08-30 20:28 朋丶Peng 阅读(1373) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-08-30 17:39 朋丶Peng 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 组件.name 指的是组件所在游戏对象的名字,例如: Animation m_animation; m_animation =GetComponent<Animation>(); m_animation.name 指的就是获得的Animation组件所在的游戏对象的名字 阅读全文
posted @ 2017-08-30 09:56 朋丶Peng 阅读(584) 评论(0) 推荐(0) 编辑