Пример #1
0
 protected override void StartUp()
 {
     base.StartUp();
     if (!Kho)
     {
         Kho = FindObjectOfType <KhoNongSan>();
     }
     AnBT();
     BT.AddButton(0, Languages.getString("MoQuay"));
     BT.AddListener(0, Open);
     BT_HUY.onClick.AddListener(onClickHuy);
     BT_Ban.onClick.AddListener(() => onClickBan_Mua(QuayHang_TGD.Ban));
     BT_Mua.onClick.AddListener(() => onClickBan_Mua(QuayHang_TGD.Mua));
     Info.L.onClick.AddListener(onClickL);
     Info.R.onClick.AddListener(onClickR);
     Info.Min.onClick.AddListener(onClickMin);
     Info.Max.onClick.AddListener(onClickMax);
     Info.MainTT.onClick.AddListener(onClickMainTT);
     EventExpected.OnGoIn  += onGoIn;
     EventExpected.OnGoOut += onGoOut;
 }