Exemplo n.º 1
0
 public void RemoveOrDowngrade(Ability a)
 {
     var actor = GetComponentInParent<Actor>();
     if (actor == null) return;
     a.Return(actor);
     Save();
 }
Exemplo n.º 2
0
 public void UnlockOrUpgrade(Ability a)
 {
     var actor = GetComponentInParent<Actor>();
     if (actor == null) return;
     if (UnlockedAbilities().Count >= MaxUnlocks) return;
     a.Purchase(actor);
     Save();
 }
Exemplo n.º 3
0
 public Ability(Ability a)
 {
     name     = a.name;
     power    = a.power;
     accuracy = a.accuracy;
 }