コード例 #1
0
    public void Init(UIBattlePanel manager, SkillItem item)
    {
        if (null == item)
        {
            enabled = false;
            mIcon.enabled = false;
            Destroy(this);
            return;
        }
        this.manager = manager;
        this.skillData = item;
        //this.skillIdx = skillData.templateID;
        isUnlock = item.IsUnlock();
        SetLock(!isUnlock);

        if (isUnlock)
        {
            this.enabled = true;
        }

        //初始化CD间隔
        isWaitCD = false;
    }