public void initLanding(StationLanding stationToLand, Vector3 landCorrectionPosition, Vector3 targetPosition) { stationLanding = stationToLand; gameObject.layer = LayerMask.NameToLayer(landingLayer); pathLine.resetLine(); pathLine.createLandingLine(landCorrectionPosition, targetPosition); }
public void finishDeliveryProcess() { if (containerManager.getContainersCount() > 0) { gameObject.layer = LayerMask.NameToLayer(defaultLayer); stationLanding = null; isLanded = false; return; } ; gameObject.layer = LayerMask.NameToLayer(deliveredLayer); }
void Start() { stationLanding = GetComponentInParent <StationLanding>(); }