public static GameObject CreateAGO(string name) { AGOType type = AbstractAGO.ParseAGOType(name); Debug.Log(type); MethodInfo createFunc = typeof(AGameObjectFactory).GetMethod("Create" + type.ToString()); GameObject obj = (GameObject)createFunc.Invoke(null, new string[] { name }); return(obj); }
public abstract void UpdateData(AbstractAGO obj);