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

浙公网安备 33010602011771号