예제 #1
0
        private void Cooldown(CommandTag commandTag)
        {
            string label = GetComponent <UITextData>().GetStringData(
                UITextCategoryTag.ActorStatus, UITextDataTag.Cooldown);
            int currentCooldown = skillManager.GetCurrentCooldown(commandTag);
            int maxCooldown     = skillManager.GetMaxCooldown(commandTag);

            SearchText(UITag.CooldownText).text = label;
            SearchText(UITag.CooldownData).text
                = currentCooldown + " / " + maxCooldown;
        }
예제 #2
0
        private void VerifySkillCooldown_VerifyingSkill(object sender,
                                                        VerifyingSkillEventArgs e)
        {
            bool canUseSkill
                = skillManager.GetCurrentCooldown(e.UseSkill)
                  <= skillManager.MinCooldown;

            if (!canUseSkill)
            {
                e.CanUseSkill.Push(false);
            }
        }
예제 #3
0
        private void SkillCooldown()
        {
            UITag[] ui = new UITag[]
            {
                UITag.QData, UITag.WData, UITag.EData, UITag.RData
            };

            for (int i = 0; i < ui.Length; i++)
            {
                SearchText(ui[i]).text
                    = skillManager.GetCurrentCooldown(ui[i]).ToString();
            }
        }