Ejemplo n.º 1
0
 // Use this for initialization
 void Awake()
 {
     octile               = new Octile();
     waypoints            = new List <xyLoc>();
     astar                = new GridAStar(Map.width, Map.height);
     useVelocity          = true;
     transform.localScale = Vector3.one * Map.scale;
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        octile    = new Octile();
        waypoints = new List <xyLoc>();

        // Sample set of waypoints. Movement is from last to first
        waypoints.Add(new xyLoc(0, 0));
        waypoints.Add(new xyLoc(49, 0));
        waypoints.Add(new xyLoc(49, 49));
        waypoints.Add(new xyLoc(0, 49));
        astar       = new GridAStar(50, 50);
        useVelocity = true;
    }