Пример #1
0
 /// <summary>
 /// Tells the tree to stop as soon as it cans
 /// and to return the best action
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void TimesUp(object sender, System.Timers.ElapsedEventArgs e)
 {
     stop = true;
     support.ActionToExecute = tree.GetBestAction();
     Debug.LogWarning("Se ha llegado hasta el nodo " + maxNodo);
     Debug.LogWarning("ACTION TO EXECUTE = " + support.ActionToExecute);
     support.Ready = true;
 }