示例#1
0
        public override void Run(Workspace workspace)
        {
            //*****tmp测试用加上的
            //string code = CSharp.Generator.WorkspaceToCode(workspace);

            mVariableNames.Reset();
            mVariableDatas.Reset();

            //var workspaceA = new Workspace();
            //var workspaceB = new Workspace();

            //workspaceA.ObjectRoot = new GameObject("gameObjectA");
            //workspaceB.ObjectRoot = new GameObject("gameObjectB");

            //LoadScript("111", workspaceA);
            //LoadScript("222", workspaceB);

            //mRunningProcess = RunWorkspace(workspaceA);
            //mRunner.StartProcess(mRunningProcess);

            //mRunningProcess = RunWorkspace(workspaceB);
            //mRunner.StartProcess(mRunningProcess);

            mRunningProcess = RunWorkspace(workspace);
            mRunner.StartProcess(mRunningProcess);
        }
示例#2
0
 public void Clear()
 {
     mWorkspace = null;
     mNameMgr.Reset();
     mProcedureDefinitions.Clear();
     mProcedureCallers.Clear();
 }
        public override void Run(Workspace workspace)
        {
            mVariableNames.Reset();
            mVariableDatas.Reset();

            mRunningProcess = RunWorkspace(workspace);
            mRunner.StartProcess(mRunningProcess);
        }