TestWallPoint.cs 517 B

12345678910111213141516171819202122232425262728
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using static XunJianDataManager;
  5. public class TestWallPoint : MonoBehaviour
  6. {
  7. public List<Transform> listPoint;
  8. public List<Vector3> listpos;
  9. private void Update()
  10. {
  11. if(Input.GetKeyDown(KeyCode.K))
  12. {
  13. listpos = new List<Vector3>();
  14. for (int i = 0; i < listPoint.Count; i++)
  15. {
  16. listpos.Add(listPoint[i].position);
  17. }
  18. }
  19. }
  20. }