domingo, 16 de octubre de 2016

node.cs

using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class Node : MonoBehaviour {

public Node[] neighbors;
public List<Node> history;

public float g;
public float f;

void OnDrawGizmos(){

Gizmos.color = Color.green;
for (int i = 0; i < neighbors.Length; i++) {
Gizmos.DrawLine (transform.position, neighbors [i].transform.position);
}
}
}

No hay comentarios:

Publicar un comentario