private void OnCardClick(ResultsCheckingPriorities resultsCheckingPriorities, Car car) { car.SetUserPriority(_priority); resultsCheckingPriorities.SetUserPriorityForCar(car); _choiceCarPriority.gameObject.SetActive(false); }
public void Init(ResultsCheckingPriorities resultsCheckingPriorities, Car car) { _button.onClick.RemoveAllListeners(); _button.onClick.AddListener(() => OnCardClick(resultsCheckingPriorities, car)); }