2024年1月19日发(作者:)
[javascript]1. var newObject : Transform;
2. private var cubeCount = 0;
3. function Update(){
4. if(tonDown("Fire1"))
5. {
6. Instantiate(newObject, on, on);
7. ("Cube created");
8. cubeCount++;
9. (cubeCount);
10. }
11. }
9.常见脚本类型
2024年1月19日发(作者:)
[javascript]1. var newObject : Transform;
2. private var cubeCount = 0;
3. function Update(){
4. if(tonDown("Fire1"))
5. {
6. Instantiate(newObject, on, on);
7. ("Cube created");
8. cubeCount++;
9. (cubeCount);
10. }
11. }
9.常见脚本类型
发布评论