string str = "FFF";
Type t = Type.GetType (str);
var obj = t.Assembly.CreateInstance (str);
MethodInfo[] info = t.GetMethods ();
// for(int i=0;i<info.Length;i++){
// info [i].Invoke (obj,null);
// }
Debug.Log( info [1].Name);
info [1].Invoke (obj,null);
string s = "pop";
// MethodInfo gg = new String (s);
// gg.Invoke (obj,null);
MethodInfo meth = t.GetMethod (s);
meth.Invoke (obj,null);
// System.Type typeinfo = this.GetType();
// MethodInfo mth = typeinfo.GetMethod ("Start");
// mth.Invoke (obj,null);
}
}
public class FFF{
public void ttt(){
}
public void pop(){
Debug.Log (777);
}
}