public GeneralModule CreateInstance(string moduleName) { Type type = null; string fullname = m_namespace + "." + moduleName; return(ILRManager.CreateInstance(fullname, m_assemblyName) as GeneralModule); }
protected override void OnAwake() { base.OnAwake(); string fullName = Namespace + "." + TypeName; m_impl = ILRManager.CreateInstance(fullName, AssemblyName) as ILRUIPanel; if (m_impl == null) { Debuger.LogError("无法在Assembly[{0}]中创建实例:{1}", AssemblyName, fullName); } else { m_impl.OnAwakeInternal(this); } }