Esempio n. 1
0
 void Reset()
 {
     isInsert = false;
     gameObject.SetActive(false);
     Pop1.gameObject.SetActive(false);
     Pop2.gameObject.SetActive(false);
     if (lastClickPop1Item != null)
     {
         lastClickPop1Item.GetComponent <Image>().color = normalColor;
     }
     BtnAdd.GetComponent <Image>().color    = normalColor;
     BtnInsert.GetComponent <Image>().color = normalColor;
     HideAddButton(false);
     HideCopyAndPasteButton(false);
     HideDeleteButton(false);
     HideInsertButton(false);
     lastClickPop1Item = null;
 }
Esempio n. 2
0
    private void SetButtons(Transform cell)
    {
        ButtonCustom component = cell.FindChild("btnLvUp").GetComponent <ButtonCustom>();
        PetInfo      onePet    = PetEvoGlobal.GetOnePet(PetBasicUIViewModel.PetID);

        if (onePet != null)
        {
            if (component.onClickCustom == null)
            {
                component.onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnBtnLvUp);
            }
        }
        else
        {
            component.set_interactable(false);
            ImageColorMgr.SetImageColor(component.GetComponent <Image>(), true);
        }
    }