Beispiel #1
0
 public override void whenOpenThisPanel()
 {
     base.whenOpenThisPanel();
     currentBtnKind = aboveBtnKind.material;
     BAG.gameObject.SetActive(false);
     resetThisPanel();
     page.ItemsInit(SDConstants.ItemType.Consumable, SDConstants.ConsumableType.material);
     if (page.items.Count > 0)
     {
         page.items[0].chooseConsumableToShowDetail();
     }
 }
Beispiel #2
0
 public void btnToMaterial()
 {
     if (currentBtnKind != aboveBtnKind.material)
     {
         currentBtnKind = aboveBtnKind.material;
         foreach (Button b in aboveBtns)
         {
             b.interactable = true;
         }
         aboveBtns[(int)currentBtnKind].interactable = false;
         BAG.gameObject.SetActive(false);
         resetThisPanel();
         page.ItemsInit(SDConstants.ItemType.Consumable, SDConstants.ConsumableType.material);
     }
 }
Beispiel #3
0
 public void btnToProp()
 {
     if (currentBtnKind != aboveBtnKind.prop)
     {
         currentBtnKind = aboveBtnKind.prop;
         foreach (Button b in aboveBtns)
         {
             b.interactable = true;
         }
         aboveBtns[(int)currentBtnKind].interactable = false;
         BAG.gameObject.SetActive(true);
         BAG.InitBag(BagController.useType.change);
         resetThisPanel();
         page.ItemsInit(SDConstants.ItemType.Consumable, SDConstants.ConsumableType.prop);
     }
 }