Ejemplo n.º 1
0
        public void GivenANumberOfWantedLineRenderers_WhenCreatingLineRenderers_ThenWantedNumberOfLineRenders()
        {
            const int numberOfLineRenderers = 50;

            var lineRenderers = _lineRenderFactory.CreateUnityLineRenderers(numberOfLineRenderers, new GameObject().transform, null, 1);

            Assert.AreEqual(numberOfLineRenderers, lineRenderers.Length);
        }
 private void Initialization()
 {
     _lineRendererFactory = new LineRendererFactory();
     _lineRenderers       =
         _lineRendererFactory.CreateUnityLineRenderers(1000, gameObject.transform, LinesMaterial, 0.01f);
     _teleporter =
         new Teleporter(
             new TeleportationTarget(TeleportCircle.transform, TeleportCircle.GetComponent <MeshRenderer>(),
                                     new UnityRaycast(), false), new Arc(Steps, IndexTip), _lineRenderers);
     _teleporationInput = new TeleportationInput(Velocity, _teleporter, IndexTip, Referentiel, Head);
 }