利用字符串獲取變量名裏的值

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
相關文章
相關標籤/搜索