public void FindClosestEnemy()
{
List<GameObject> pList = GameObject.FindGameObjectsWithTag("Player");
pList.OrderBy(obj=>Vector3.Distance(FindLocalPlayer().transform.position,
obj.transform.position)).ToList();
}
我不明白两个列表之间的区别。如何将“ UnityEngine.GameObject []”列表转换为System.Collections.Generic.List> UnityEngine.GameObject <
交互式爱情
LEATH
相关分类