利用字符串获取变量名里的值

public class test:MonoBehaviour { string str = "id"; public int num = 3; test2 te=new test2(); private void Start() { int myNum = (int)te.GetType().GetField(str
相关文章
相关标签/搜索