예제 #1
0
        static public void InitGameCore(CodeToolBase _codeTool)
        {
            if (Core.mIsInited)
            {
                DLog.LogError("不允许重复初始化GameCore,请检查代码");
                return;
            }

            Core.SetPath();

            Core.mScriptManager = new ScriptManager(_codeTool);
            Core.mIsInited      = true;
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
 public ScriptManager(CodeToolBase _delgateCodeTool)
 {
     CodeTool = _delgateCodeTool;
 }