You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
728 B
27 lines
728 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using TMPro;
|
|
|
|
public class SkillItem : MonoBehaviour
|
|
{
|
|
public Skill skill;
|
|
public SkillManager skillManager;
|
|
public GameObject weaponManager;
|
|
public TMP_Text SkillName;
|
|
public TMP_Text ManaCost;
|
|
public TMP_Text MovementCost;
|
|
public TMP_Text Description;
|
|
|
|
public void Apply()
|
|
{
|
|
skill.gameObject.SetActive(true);
|
|
weaponManager.SetActive(false);
|
|
skillManager.SetCurrentSkill(skill);
|
|
SkillName.text = skill.skillName;
|
|
ManaCost.text = skill.manaCost.ToString();
|
|
MovementCost.text = skill.movementCost.ToString();
|
|
Description.text = skill.description;
|
|
}
|
|
}
|