• 大小: 720KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-22
  • 语言: 其他
  • 标签: Unity3D  热更新  

资源简介

ILRuntime Unity3D示例的热更新思路,用于线上游戏代码的热更。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;

namespace HotFix_Project
{
    public class InstanceClass
    {
        private int id;

        public InstanceClass()
        {
            UnityEngine.Debug.Log(“!!! InstanceClass::InstanceClass()“);
            this.id = 0;
        }

        public InstanceClass(int id)
        {
            UnityEngine.Debug.Log(“!!! InstanceClass::InstanceClass() id = “ + id);
            this.id = id;
        }

        public int ID
        {
            get { return id; }
        }

        // static method
        public static void StaticFunTest()
        {
            UnityEngine.Debug.Log(“!!! InstanceClass.StaticFunTest()“);
        }

        public static void StaticFunTest2(int a)
        {
            UnityEngine.Debug.Log(“!!! InstanceClass.StaticFunTest2() a=“ + a);
        }

        public static void GenericMethod(T a)
        {
            UnityEngine.Debug.Log(“!!! InstanceClass.GenericMethod() a=“ + a);
        }
    }


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\
     文件         378  2018-05-02 10:31  ILRuntimeU3D-master\.gitattributes
     文件          41  2018-05-02 10:31  ILRuntimeU3D-master\.gitignore
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\
     文件        3291  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\HotFix_Project.csproj
     文件         972  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\HotFix_Project.sln
     文件        1004  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\InstanceClass.cs
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\Properties\
     文件        1404  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\Properties\AssemblyInfo.cs
     文件         309  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\TestCLRBinding.cs
     文件         255  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\TestCLRRedirection.cs
     文件         497  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\TestCoroutine.cs
     文件        1557  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\TestDelegate.cs
     文件         750  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\TestInheritance.cs
     文件        2452  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\TestJson.cs
     文件        1345  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\TestMonoBehaviour.cs
     文件        4094  2018-05-02 10:31  ILRuntimeU3D-master\HotFix_Project\TestValueType.cs
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\
     文件         191  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime.meta
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\
     文件         192  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\Adapters.meta
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\Adapters\
     文件         192  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\Adapters\Editor.meta
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\Adapters\Editor\
     文件        2373  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\Adapters\Editor\ILRuntimeCLRBinding.cs
     文件         263  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\Adapters\Editor\ILRuntimeCLRBinding.cs.meta
     文件         192  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\CLR.meta
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\CLR\
     文件         192  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\CLR\Method.meta
     目录           0  2018-05-02 10:31  ILRuntimeU3D-master\ILRuntimeDemo\Assets\ILRuntime\CLR\Method\
............此处省略659个文件信息

评论

共有 条评论