Пример #1
0
 public Ability(AbilityTemplate template)
 {
     _template = template;
     Cooldown  = template.BaseCooldown;
     _data     = _template.GenerateData();
     if (_template.Passive != null)
     {
         Passive = _template.Passive;
     }
 }
Пример #2
0
 void SetAbilities(AbilityTemplate[] templates)
 {
     Abilities = new Ability[templates.Length];
     for (int i = 0; i < templates.Length; i++)
     {
         AbilityTemplate template = templates[i];
         if (template != null)
         {
             Abilities[i] = new Ability(template);
         }
     }
 }