LineRendererNormals.cs 618 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using UnityEngine;
  3. public class LineRendererNormals : MonoBehaviour
  4. {
  5. private void Awake()
  6. {
  7. this.m_mr = base.GetComponent<MeshRenderer>();
  8. if (this.m_mr != null)
  9. {
  10. this.m_mr = base.gameObject.AddComponent<MeshRenderer>();
  11. }
  12. }
  13. private void Start()
  14. {
  15. }
  16. public void SetVertexCount(int f_nCount)
  17. {
  18. this.m_aryPoints = new Vector3[f_nCount];
  19. }
  20. public void SetPosition(int f_nIndex, Vector3 f_vPosition)
  21. {
  22. this.m_aryPoints[f_nIndex] = f_vPosition;
  23. }
  24. private void MakeLine()
  25. {
  26. }
  27. private void Update()
  28. {
  29. }
  30. private Vector3[] m_aryPoints;
  31. private MeshRenderer m_mr;
  32. }