Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class Paths : MonoBehaviour {
- public Material lineMaterial;
- private LineRenderer[] lines;
- public Transform[] availableWays;
- private Transform thisTrans;
- int pathCount = 0;
- void Start()
- {
- thisTrans = transform;
- pathCount = availableWays.Length;
- if( pathCount > 0 )
- {
- lines = new LineRenderer[pathCount];
- for( int i=0;i<pathCount;i++ )
- {
- DoStuffWithLineRenderer();
- }
- }
- }
- void Update()
- {
- /*
- if( pathCount > 0 )
- {
- for( int i=0;i<pathCount;i++ )
- {
- //draw lines
- line[i].SetPosition(0, thisTrans.position );
- line[i].SetPosition(1, availableWays[i].position );
- }
- }
- */
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement