Example #1
0
 /// <summary>
 /// Copies a skill to another slot.
 /// </summary>
 /// <param name="skill1">First slot.</param>
 /// <param name="skill2">Second slot.</param>
 public void CopySkill(SkillSlot skill1, SkillSlot skill2)
 {
     if (skill1.SkillIsCharged && skill2.SkillIsCharged)
     {
         skill2.UpdateSkillSlot(skill1.skill, skill1.level);
         skill2.slotDisplay.GetComponentInChildren <TextMeshProUGUI>().text = "";
         SkillAudioEventTrigger.Instance.PlaySound(slotSwap);
     }
 }