コード例 #1
0
    public void updateButton(GameObject page)
    {
        int index = StringKit.toInt(page.name) - 1;

        this.index = index;
        SoulEquiShow button = page.transform.GetComponent <SoulEquiShow>();

        button.initInfo(data[index], fatherWindow);
    }
コード例 #2
0
 /// <summary>
 /// 节点滑动到中间以后触发的事件.
 /// </summary>
 public void updateActive(GameObject obj)
 {
     activeShowItem = obj.GetComponent <SoulEquiShow>();
     activeCard     = activeShowItem.currectCard;
     StarSoulManager.Instance.setActiveInfo(activeCard, -1);
     updateStarSoulInfo(activeCard);
     soulEquiInfo.initInfo(data[StringKit.toInt(obj.name) - 1], fatherWindow, teamNum, changedFlag);
     if (changedFlag == CardBookWindow.VIEW || changedFlag == 0)
     {
         fatherContent.contentTop.initTopButton(StringKit.toInt(obj.name) - 1);
     }
 }