//-Implementation private void Awake() { XUtils.check(ProgressIndicator); XUtils.check(WorkersAssignemntControl); WorkersAssignemntControl.onPressedAssignWorker += () => { CrewMember theCrewMemberToAssign = XUtils.verify(_carCity).getFirstFreeCrewMember(); if (null == theCrewMemberToAssign) { return; } collectConstructionSiteWorkers(ref __arrayRegister); if (__arrayRegister.getSize() >= _constructionSite.getMaxWorkersPossibleToAssign()) { return; } theCrewMemberToAssign.setConstruction(_constructionSite); }; WorkersAssignemntControl.onPressedWithdrawWorker += () => { collectConstructionSiteWorkers(ref __arrayRegister); if (0 == __arrayRegister.getSize()) { return; } __arrayRegister[0].setConstruction(null); }; }