#pragma warning restore 649

        protected override void OnUpdate()
        {
            for (var i = 0; i < _data.Length; i++)
            {
                LineRendererHelper.BaseInit(_data.Position[i], _data.PlanetaryOrbit[i], _data.LineRenderer[i]);
            }
        }
예제 #2
0
#pragma warning restore 649

        protected override void OnUpdate()
        {
            for (var i = 0; i < _data.Length; i++)
            {
                LineRendererHelper.CalculateByCamera(_data.PlanetaryOrbit[i], _data.LineRenderer[i]);
            }
        }
예제 #3
0
        private void SetupSelectionCircle()
        {
            var      lineRenderer    = GetComponent <LineRenderer>();
            Material whiteDiffuseMat = new Material(Shader.Find("Unlit/Texture"));

            lineRenderer.material = whiteDiffuseMat;
            lineRenderer.enabled  = false;

            LineRendererHelper.DrawCircle(lineRenderer, _rectTransform.sizeDelta.x / 2);
        }