Example #1
0
 public override void Run(float delta, Tank tank)
 {
     if (condition.Evaluate(delta, tank))
     {
         tank.AddActionsToBeginning(ifActions);
     }
     else
     {
         if (elseActions.Count > 0)
         {
             tank.AddActionsToBeginning(elseActions);
         }
     }
     done = true;
 }