forked from cgvr/DeltaVR
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			425 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			425 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Collections;
 | 
						|
using System.Collections.Generic;
 | 
						|
using UnityEngine;
 | 
						|
 | 
						|
public class NavPoint : MonoBehaviour
 | 
						|
{
 | 
						|
    public NavPoint previous;
 | 
						|
    public NavPoint next;
 | 
						|
 | 
						|
    public NavPoint GetNext()
 | 
						|
    {
 | 
						|
        return next;
 | 
						|
    }
 | 
						|
    
 | 
						|
    void OnDrawGizmos()
 | 
						|
    {
 | 
						|
        if (next == null) return;
 | 
						|
        Gizmos.color = Color.yellow;
 | 
						|
        Gizmos.DrawLine(transform.position, next.transform.position);
 | 
						|
    }
 | 
						|
 | 
						|
}
 |