コード例 #1
0
 private void OnCardClick(ResultsCheckingPriorities resultsCheckingPriorities, Car car)
 {
     car.SetUserPriority(_priority);
     resultsCheckingPriorities.SetUserPriorityForCar(car);
     _choiceCarPriority.gameObject.SetActive(false);
 }
コード例 #2
0
 public void Init(ResultsCheckingPriorities resultsCheckingPriorities, Car car)
 {
     _button.onClick.RemoveAllListeners();
     _button.onClick.AddListener(() => OnCardClick(resultsCheckingPriorities, car));
 }