private void checkSim(int x, int y) { return; try { if (simulator.QtySimulacoes == 0) { return; } Vector2 targetPos = Main.move.getEnd(x, y, Main.move.getStart); GameObject target = getTargetFromMainPos(targetPos.x, targetPos.y); simulator.Check(TipoSimulacao.ATAQUE, target != null); } catch (Exception) { Debug.Log("Action - Erro ao achar Simulator."); } }
override public string Execute(Simulator sim) { sim.Check(); return(base.Execute(sim)); }