예제 #1
0
 private void DestroyItem(MarketItemView item)
 {
     item.Clicked -= OnItemClicked;
     item.Hide();
     item.ApplyModel(null);
     Destroy(item.gameObject);
 }
예제 #2
0
 protected virtual void UpdateItemViewPanel(MarketItemModel item)
 {
     _itemViewPanel.ApplyModel(item);
     if (item != null)
     {
         _itemViewPanel.Show();
     }
     else
     {
         _itemViewPanel.Hide();
     }
 }
예제 #3
0
 protected override void OnModelChanged()
 {
     base.OnModelChanged();
     _marketItemView.ApplyModel(FormModel.SelectedItem);
 }