Beispiel #1
0
 private void CleanupSlot(SkillSlot slot)
 {
     slot.Skill.CooldownStarted  -= OnSkillCooldownStarted;
     slot.Skill.CooldownUpdated  -= OnSkillCooldownUpdated;
     slot.Skill.CooldownFinished -= OnSkillCooldownFinished;
     slot.ChangeSkill(slot.SkillType == SkillType.Weapon ? GetDefaultWeaponSkill() : Skill.Empty);
 }
Beispiel #2
0
        private static void Swap(SkillSlot slotA, SkillSlot slotB)
        {
            var temp = slotA.Skill;

            slotA.ChangeSkill(slotB.Skill);
            slotB.ChangeSkill(temp);
        }
Beispiel #3
0
 private void SetupSlot(SkillSlot slot, Skill skill)
 {
     skill.Caster            = gameObject;
     skill.CooldownStarted  += OnSkillCooldownStarted;
     skill.CooldownUpdated  += OnSkillCooldownUpdated;
     skill.CooldownFinished += OnSkillCooldownFinished;
     slot.ChangeSkill(skill);
 }