public void ChargeUp(string name, int energy) { Robot robot = FindRobotBy(name); if (robot != null) { robot.Charger(energy); } }
public void ChargeUp(string name, int energy) { Robot robot = FindRobotBy(name); if (robot != null) { robot.Charger(energy); } }