void Awake() { view = GetComponent <BagView>(); model = GarbageModel.Instance; view.Btn_Close.onClick.AddListener(() => gameObject.SetActive(false)); model.addGarbage += AddGarbage; }
public object OnOpenBagView(params object[] objs) { if (bagView == null) { bagView = new BagView(); } else { bagView.Show(); } return(null); }
public BagControl() { bagView = new BagView(); SceneControl.Inst().OnSceneExit += new SceneControl.SceneExiteDelegate(OnSceneExit); }
private void GetMoney(int gold, int silver, int copper) { BagView.ShowMoney(gold, silver, copper); }
private void Start() { bv = GameObject.Find("InvGrid").GetComponent <BagView>(); pickItem = new Item("", null); }
private void Bag_Button_Click(object sender, RoutedEventArgs e) { bagView = new BagView(); bagView.ShowDialog(); }
public void BagInit(PlayerBag bag) { _bag = FindObjectOfType <BagView>(); _bag.Initialization(bag); }