Unity简单对象池Pool

第一步:创建2个脚步,如图 代码如下: Pool脚本 using System.Collections; using System.Collections.Generic; using UnityEngine; public class pool : MonoBehaviour { public GameObject goPrefabs; //对象池子 private L
相关文章
相关标签/搜索