Exemplo n.º 1
0
 public Ability(KeyCode activationKey, AbilityType type, Unit activator, Func <Ability, IEnumerator> routine, float reloadTime, AbilitySprite abilitySprite, int id, string aName, string description = "")
 {
     this.reloadTime    = reloadTime;
     this.type          = type;
     this.activationKey = activationKey;
     this.activator     = activator;
     this.routine       = routine;
     this.abilitySprite = abilitySprite;
     this.id            = id;
     this.description   = description;
     this.aName         = aName;
 }
Exemplo n.º 2
0
 public Sprite getAbilitSprite(AbilitySprite ab)
 {
     return(icons[(int)ab].icon);
 }
Exemplo n.º 3
0
 public void ChangeSpriteTo(AbilitySprite ass)
 {
     abilitySprite = ass;
     OnSpriteChange?.Invoke(this, EventArgs.Empty);
 }