virtual public void InitScript(string _class, string _AppName)
 {
     if (_class.Length == 0 || mInitScript)
     {
         return;
     }
     if (_AppName.Equals(cNeedSetAppName))
     {
         DLog.LOGColor(DLogType.Error, string.Format("必须设置正确的AppName.Class = {0},GameObject = {1}", _class, gameObject.name), LogColor.YELLO);
         return;
     }
     try {
         mAppName     = _AppName;
         mCore        = AppCore.App[mAppName];
         mCodeTool    = mCore.SManager.CodeTool;
         mScriptClass = _class;
         mScriptType  = mCodeTool.GetLType(mScriptClass);
         mObject      = mCodeTool.GetCSLEObjectParmasByType(mScriptType, this);
         InitParamList();
         mCore.AddScriptInterface(this);
         CallScriptFunctionByName("Awake");
         mInitScript = true;
     }
     catch (Exception _erro)
     {
         DLog.LogError(string.Format("脚本初始化出错:Class = {0},AppName = {1},GameObject = {2},InitScript ->{3}", mScriptClass, mAppName, gameObject.name, _erro.ToString()));
     }
 }
 public ProtoBufferReaderBuilderCSLS(CodeToolBase _codetool, byte[] _buffer, int _len, string _classname)
 {
     mCodeTool  = _codetool;
     mReader    = new ProtobufferReaderCSLS(_buffer, _len);
     mClassName = _classname;
     InitType();
     mScriptObject = mCodeTool.GetCSLEObjectParmasByType(mScriptType);
     BuildMember();
 }