cbbcpp

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2014年1月24日

摘要: 比如管理器类型(整个场景中只有一个实例)的东西,自身的启动我都放在awake()里面,要访问其他管理器的启动部分就放在start()里面。比如public class Controller{public static Controller instance;private void Awake(){instance = this;this.currentChapterIndex = 1;}public int currentChapterIndex;}public class Cube{private Start(){if(Controller.instance.currentChapterI 阅读全文
posted @ 2014-01-24 11:47 cbbcpp 阅读(176) 评论(0) 推荐(0) 编辑