unityscript专题

unityscript OnGUI无法生成GUI界面。

private var flag:boolean = false;function Update(){if(Input.GetKeyDown(KeyCode.Escape))flag = !flag;if(flag) Time.timeScale = 0;else Time.timeScale = 1;}function OnGUI(){if(flag){//if(Input.GetKeyDo

unityscript(js)学习 transform,

transform类:http://wiki.ceeger.com/script:unityengine:classes:transform:transform Time类:http://game.ceeger.com/Script/Time/Time.html Update()每帧调用一次。 常用操作: function Update () {transfo