- 数组
- int[ ] array=new int[5];
- using System.Collections.Generic;
List list=new List();
list.Add( );往lsit添加内容
list.Sort( );排序 - for循环
- foreach(int i in array)
{
…
} - 访问游戏对象和组件
-
MonoBehavior类
-
访问游戏对象
- ①通过名称来查找:GameObject.Find("…")
- ②通过标签来查找:GameObject.FindWithTag("…") ;GameObject.FindGameObjectsWithTag("…")
-
访问组件 P496
-
Unity脚本(学习笔记)
最新推荐文章于 2023-04-06 17:41:46 发布