Exemplo n.º 1
0
 //移除技能
 public void RemoveSkill()
 {
     this.shutCutGoodsId    = 0;
     this.shutCutType       = ShutCutType.None;
     this.shutCutImg.sprite = null;
     this.canvasGroup.alpha = 0;
     this.shutCutImg.transform.SetParent(this.transform);
     this.shutCutImg.transform.localPosition = Vector3.zero;
 }
Exemplo n.º 2
0
    //通过Id,添加技能
    public void AddSkillIcon(int id)
    {
        Skill skill = SkillInfoData.GetInstance().GetSkillInfoById(id);

        this.shutCutGoodsId    = id;
        this.shutCutType       = ShutCutType.Skill;
        this.shutCutImg.sprite = TextureManager.Instance.GetSprite(ConstDates.ResourceSpritesDirSwl, skill.iconName);
        this.canvasGroup.alpha = 1;
        this.shutCutImg.transform.SetParent(this.transform);
        this.shutCutImg.transform.localPosition = Vector3.zero;
    }