Example #1
0
 protected override void Execute(List <GameEntity> entities)
 {
     foreach (GameEntity entity in entities)
     {
         bool controlPassed = _entityController.GiveControl(entity);
         //				Debug.Log($"control to {entity.view.Controller.Name}, guid {entity.id.Id}, control passed: {controlPassed}");
         if (controlPassed)
         {
             entity.isFinishedTurn      = true;
             _context.isWaitingForInput = false;
         }
         else
         {
             if (entity.isPlayerControlled)
             {
                 _context.isWaitingForInput = true;
             }
         }
         entity.isEnergyReady = false;
     }
 }