11:47 2016/11/30Before you can load a level you have to add it to the list of levels used in the game. Use File->Build Settings... in Unity and add the levels you need to the level list there. MonoBehaviour.OnLevelWasLoaded is called on all active ga…
12.19 file与io流 File 1. 新建文件或者文件夹 新建文件 File F = new File(pathname:"路径+文件名");Boolean flag = F.creatNewFile();//如果文件不存在就创建,存在就创建失败. 新建一级文件夹 File F = new File(pathname:"一级路径")://例如D:\\F:Boolean flag = F.mkdir();System.out.println(flag?&quo…
引子 var a = {n:1}; var b = a; // 持有a,以回查 a.x = a = {n:2}; alert(a.x);// --> undefined alert(b.x);// --> {n:2} 请问结果为何是这样? 连等赋值的赋值顺序 假设有一句代码: A=B=C; ,赋值语句的执行顺序是从右至左,所以问题在于: 是猜想1: B = C; A = C; ? 还是猜想2: B = C; A = B; ? 我们都知道若两个对象同时指向一个对象,那么对这个对象的修改是同步的…