//------------------------------------------------------------------------- public void destroy() { foreach (var it in mMapNodeMgr) { it.Value.Dispose(); } mMapNodeMgr.Clear(); mMapNodeDefFile.Clear(); if (mNodeScriptMgr != null) { mNodeScriptMgr.destroy(); mNodeScriptMgr = null; } if (mNodeEffectMgr != null) { mNodeEffectMgr.destroy(); mNodeEffectMgr = null; } if (mNodeTriggerMgr != null) { mNodeTriggerMgr.destroy(); mNodeTriggerMgr = null; } if (mNodeTriggerConditionMgr != null) { mNodeTriggerConditionMgr.destroy(); mNodeTriggerConditionMgr = null; } }
//------------------------------------------------------------------------- public void create(string nodesys_media_path, bool is_client, bool test_mode) { mNodeSysMediaPath = nodesys_media_path; mIsClient = is_client; mbTestMode = test_mode; // 创建效果管理器 if (mNodeEffectMgr == null) { mNodeEffectMgr = new CNodeEffectMgr(); } // 创建触发器管理器 if (mNodeTriggerMgr == null) { mNodeTriggerMgr = new CNodeTriggerMgr(); } // 创建触发条件管理器 if (mNodeTriggerConditionMgr == null) { mNodeTriggerConditionMgr = new CNodeTriggerConditionMgr(); } // 创建脚本管理器 if (mNodeScriptMgr == null) { mNodeScriptMgr = new CNodeScriptMgr(); mNodeScriptMgr.create("", ""); } // 创建 _create(); }