Exemplo n.º 1
0
        public void SetNewCombo(BaseCombo newCombo)
        {
            if (currentSkillCombo == newCombo)
            {
                return;
            }

            currentSkillCombo = newCombo;
            currentComboCount = newCombo.comboIdx;
            SetSkillWave();
        }
Exemplo n.º 2
0
 public void DisableAllLetters()
 {
     if (currentSkillCombo == null)
     {
         return;
     }
     // Debug.Log("Disabling Letters!");
     foreach (SkillLetterHolder item in skillLetters)
     {
         item.ResetLetter();
     }
     currentSkillCombo = null;
 }
Exemplo n.º 3
0
    public bool AnalyzeThisSkillRequirement(BaseCombo skill, UnitStatsSystem unitStats)
    {
        bool hasPassed = true;

        foreach (ComboRequirement item in skill.requirements)
        {
            if (hasPassed)
            {
                if (!item.CheckRequiredStats(unitStats))
                {
                    hasPassed = false;
                    break;
                }
            }
        }

        return(hasPassed);
    }