void Start() { ownerArrowController = ownerArrow.GetComponent <ArrowController> (); lineRenderer = transform.GetComponent <LnRenderer> (); beingHeldLineRenderer = transform.GetChild(2).GetComponent <LnRenderer> (); availableGuideLineLength = ownerArrowController.speed * GameController.getInstance().getDeltaTime(); }
void Start() { nodeCounter = 1; setDestination(arrow.Nodes [nodeCounter].Position.vector3()); lineRenderer = gameObject.GetComponent <LnRenderer> (); keyCounter = 0; traveledNode = 1; drawnGuideLineLength = 0; spriteRenderer = gameObject.GetComponent <SpriteRenderer> (); spriteRenderer.enabled = false; }
void Start() { lineRenderer = GetComponent <LnRenderer> (); connectorLineLength = GameController.getInstance().getDeltaTime() * ownerArrowController.speed; }