예제 #1
0
    void Start()
    {
        CQuark.AppDomain.Reset();
        InitAppDomain.RegisterUnityType();
        //CQuark.AppDomain.RegisterType (typeof(System.DateTime),"DateTime");


        string text = LoadMgr.LoadFromStreaming(m_blockFilePath);

        CQuark.AppDomain.BuildFile(m_blockFilePath, text);
    }
예제 #2
0
 void Awake()
 {
     Instance = this;
     if (!appDomainInit)
     {
         appDomainInit = true;
         //重置AppDomain(清空已注册类型,并且注册基本类型)
         CQuark.AppDomain.Initialize(true, true, true);
         //注册原生类型
     }
     CQuark.CQ_Compiler.CompileProject(Application.streamingAssetsPath + "/" + m_folderPath, m_pattern);
     Debug.Log("Project Compile Finished");
 }
예제 #3
0
 void Awake()
 {
     Instance = this;
     if (!appDomainInit)
     {
         appDomainInit = true;
         CQuark.AppDomain.Reset();
         RegisterUnityType();
         CQuark.AppDomain.RegisterMethod((eDelay)Wait);
     }
     CQuark.AppDomain.BuildProject(Application.streamingAssetsPath + "/" + m_folderPath, m_pattern);
     Debug.Log("Project Compile Finished");
 }