CSLE.CLS_Content content;//操作上下文
 public ScriptInstanceHelper(string scriptTypeName)
 {
     type = ScriptMgr.Instance.env.GetTypeByKeywordQuiet(scriptTypeName);
     if(type==null)
     {
         Debug.LogError("Type:" + scriptTypeName + "不存在于脚本项目中");
         return;
     }
     content =ScriptMgr.Instance.env.CreateContent();
     inst = type.function.New(content, null).value as CSLE.SInstance;
     content.CallType = inst.type;
     content.CallThis = inst;
     Debug.Log("inst=" + inst);
 }
Exemplo n.º 2
0
 CSLE.CLS_Content content; //操作上下文
 public ScriptInstanceState(string scriptTypeName)
 {
     type = ScriptMgr.Instance.env.GetTypeByKeywordQuiet(scriptTypeName);
     if (type == null)
     {
         Debug.LogError("Type:" + scriptTypeName + "不存在于脚本项目中");
         return;
     }
     content          = ScriptMgr.Instance.env.CreateContent();
     inst             = type.function.New(content, null).value as CSLE.SInstance;
     content.CallType = inst.type;
     content.CallThis = inst;
     Debug.Log("inst=" + inst);
 }