void Start()
		{
			if (this.slot == null)
				this.slot = this.GetComponent<UITalentSlot>();
			
			if (this.slot == null || this.talentDatabase == null || this.spellDatabase == null)
			{
				this.Destruct();
				return;
			}
			
			UITalentInfo info = this.talentDatabase.GetByID(this.assignTalent);
			
			if (info != null)
			{
				this.slot.Assign(info, this.spellDatabase.GetByID(info.spellEntry));
				this.slot.AddPoints(this.addPoints);
			}
			
			this.Destruct();
		}
Ejemplo n.º 2
0
        void Start()
        {
            if (this.slot == null)
            {
                this.slot = this.GetComponent <UITalentSlot>();
            }

            if (this.slot == null || this.talentDatabase == null || this.spellDatabase == null)
            {
                this.Destruct();
                return;
            }

            UITalentInfo info = this.talentDatabase.GetByID(this.assignTalent);

            if (info != null)
            {
                this.slot.Assign(info, this.spellDatabase.GetByID(info.spellEntry));
                this.slot.AddPoints(this.addPoints);
            }

            this.Destruct();
        }