Inheritance: UIPanel
Example #1
0
    void Awake()
    {
        view  = GetComponent <BagView>();
        model = GarbageModel.Instance;

        view.Btn_Close.onClick.AddListener(() => gameObject.SetActive(false));
        model.addGarbage += AddGarbage;
    }
Example #2
0
 public object OnOpenBagView(params object[] objs)
 {
     if (bagView == null)
     {
         bagView = new BagView();
     }
     else
     {
         bagView.Show();
     }
     return(null);
 }
Example #3
0
    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);
 }
Example #6
0
 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);
 }