public void chooseEquipmentToShowDetail() { EquipmentPanel EP = GetComponentInParent <EquipmentPanel>(); if (EP) { EP.EDP.transform.gameObject.SetActive(true); EP.EDP.transform.localScale = Vector3.one; EP.EDP.GetComponent <CanvasGroup>().alpha = 1; EP.EDP .GetComponentInChildren <SDEquipDetail>() .initEquipDetailVision (SDDataManager.Instance.getEquipmentByHashcode(itemHashcode)); sourceController.Select_None(); isSelected = true; } }
public void refreshPage() { Page.CurrentType = SDConstants.ItemType.Rune; Page.Select_None(); List <int> hcs = ComposeMaterialSlots.Select(x => x.hashcode).ToList(); hcs = hcs.FindAll(x => x > 0); for (int i = 0; i < Page.itemCount; i++) { SingleItem s = Page.items[i]; if (hcs.Exists(x => x == s.itemHashcode) || s.itemHashcode == currentRuneHashcode) { s.isSelected = true; } } refreshComposeCondition(); }