🧐

Csharp Async Await 异步方法

在Csharp中存在Async关键字可以用来修饰 函数或者委托事件 ,需注意该函数返回值只能是void或者task<>/task 当一个函数/委托/事件被该关键字修饰时如果发现在函数内部有await关键字时会去执行await关键字后的task线程函数如下 public async void Test

Decade Published on 2025-04-22

Unity_Lua表去映射列表和字典和类和接口

using System.Collections; using System.Collections.Generic; using UnityEngine; //字典和列表 public class Lesson6_CallListDic : MonoBehaviour { // Star

Decade Published on 2025-04-03

Unity_Lua全局变量与全局函数的获取

变量的获取 本质是通过获取大G表来得到引用变量 using System.Collections; using System.Collections.Generic; using UnityEngine; using XLua.LuaDLL; public class Lesson04CallVa

Decade Published on 2025-04-03

Unity_Lua解析器管理器

using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using XLua; /// <summary> /// Lua管理器 /// 提供 lua解析器 //

Decade Published on 2025-03-28

Unity_Lua资源重定向

using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using XLua; public class Lesson2_Loader : MonoBehavio

Decade Published on 2025-03-26

Unity_Lua解析器

using System.Collections; using System.Collections.Generic; using UnityEngine; //引用命名空间 using XLua; public class Lesson1_LuaEnv : MonoBehaviour {

Decade Published on 2025-03-26

2D银河恶魔城

Entity类 包含了基本对象的方法与字段 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Entity : MonoBehaviou

Decade Published on 2025-03-20

Unity_AB包资源管理器

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; //知识点 //字典 //协程 //AB包相关API //委托 //lambda表达式

Decade Published on 2025-03-14

Unity_基于观察者模式的事件中心模块

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public abstract class ObjBase { } publ

Decade Published on 2025-03-13

Unity_实现最简单的缓存池模块

using System.Collections; using System.Collections.Generic; using UnityEngine; public class MyPoolObjectPos { private GameObject objFather; pr

Decade Published on 2025-03-11
Previous Next