List 功能拓展
using UnityEngine;
using System.Collections.Generic;
public static class ListUtils
{
public static void SafeInsert<T>(this List<T> list, int index, T item)
{
index = Mathf.Clamp(index, 0, list.Count);
list.Insert(index,
原创
2021-11-25 14:38:08 ·
207 阅读 ·
0 评论