static public void InitGameCore(CodeToolBase _codeTool) { if (Core.mIsInited) { DLog.LogError("不允许重复初始化GameCore,请检查代码"); return; } Core.SetPath(); Core.mScriptManager = new ScriptManager(_codeTool); Core.mIsInited = true; }
public ScriptManager(string _appname, UseScriptType _stype) { AppName = _appname; mUseSystemAssm = _stype; switch (mUseSystemAssm) { case UseScriptType.UseScriptType_LS: Env = new ILRuntime.Runtime.Enviorment.AppDomain(); Env.AppName = AppName; mCodeTool = new CodeTool_LS(AppName, Env); break; case UseScriptType.UseScriptType_System: mCodeTool = new CodeTool_SYS(AppName); break; } }
public ScriptManager(CodeToolBase _delgateCodeTool) { CodeTool = _delgateCodeTool; }