cbbcpp

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

01 2014 档案

摘要:人物 连招 阅读全文
posted @ 2014-01-30 03:54 cbbcpp 阅读(236) 评论(0) 推荐(0)

摘要:比如管理器类型(整个场景中只有一个实例)的东西,自身的启动我都放在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 阅读(179) 评论(0) 推荐(0)