07 2023 档案

摘要: 阅读全文
posted @ 2023-07-30 11:24 好人就是我啦 阅读(18) 评论(0) 推荐(0) 编辑
摘要:using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.Events; public class MusicMgr : BaseManager<MusicMgr>{ / 阅读全文
posted @ 2023-07-23 11:34 好人就是我啦 阅读(41) 评论(0) 推荐(0) 编辑
摘要:using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.Events;using UnityEngine.SceneManagement; public class S 阅读全文
posted @ 2023-07-16 11:38 好人就是我啦 阅读(19) 评论(0) 推荐(0) 编辑
摘要:在Unity中,异步加载资源时需要配合协程使用的原因是为了避免阻塞主线程。在游戏开发中,资源加载通常是一个耗时的操作,如果在主线程中进行同步加载,会导致游戏卡顿或者无响应,影响用户体验。 使用协程可以将资源加载操作放在后台线程中进行,然后在加载完成后再将结果返回到主线程中处理。这样可以保持游戏的流畅 阅读全文
posted @ 2023-07-16 10:04 好人就是我啦 阅读(213) 评论(0) 推荐(0) 编辑
摘要:作用:让没有继承Mono的类可以开启协程,可以统一管理Update的更新。 MonoManager using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.Events 阅读全文
posted @ 2023-07-16 09:41 好人就是我啦 阅读(15) 评论(0) 推荐(0) 编辑
摘要:using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.Events; public class EventCenter{ private static EventCe 阅读全文
posted @ 2023-07-15 20:25 好人就是我啦 阅读(26) 评论(0) 推荐(0) 编辑
摘要:using System.Collections;using System.Collections.Generic;using UnityEngine; public class PoolData{ public GameObject fatherObj; public List<GameObjec 阅读全文
posted @ 2023-07-15 20:24 好人就是我啦 阅读(16) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示