Two boys have been rushed to hospital after being hit by a car in Perth.