using System.Collections; using System.Collections.Generic; using UnityEngine; using static XunJianDataManager; public class TestWallPoint : MonoBehaviour { public List listPoint; public List listpos; private void Update() { if(Input.GetKeyDown(KeyCode.K)) { listpos = new List(); for (int i = 0; i < listPoint.Count; i++) { listpos.Add(listPoint[i].position); } } } }