Example #1
0
 public void MoveTroughPath()
 {
     //Debug.Log(path[0]);
     if (pathToTake == null)
     {
         Debug.Log("Path is Null");
     }
     snake.map.DrawPath(pathToTake);
     Debug.Log((int)pathToTake[0].transform.position.x + " " + (int)pathToTake[0].transform.position.y);
     snake.AI_Input((int)pathToTake[0].transform.position.x, (int)pathToTake[0].transform.position.y);
 }
Example #2
0
 void MoveTroughPath(List <TileScript> path)
 {
     //Debug.Log(path[0]);
     snake.AI_Input((int)path[0].transform.position.x, (int)path[0].transform.position.y);
 } // If path to target have been found