12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using UnityEngine;
- public class LineRendererNormals : MonoBehaviour
- {
- private void Awake()
- {
- this.m_mr = base.GetComponent<MeshRenderer>();
- if (this.m_mr != null)
- {
- this.m_mr = base.gameObject.AddComponent<MeshRenderer>();
- }
- }
- private void Start()
- {
- }
- public void SetVertexCount(int f_nCount)
- {
- this.m_aryPoints = new Vector3[f_nCount];
- }
- public void SetPosition(int f_nIndex, Vector3 f_vPosition)
- {
- this.m_aryPoints[f_nIndex] = f_vPosition;
- }
- private void MakeLine()
- {
- }
- private void Update()
- {
- }
- private Vector3[] m_aryPoints;
- private MeshRenderer m_mr;
- }
|