this idiot forgot to commit an entire month's worth of code
This commit is contained in:
parent
c67146ea1a
commit
a3321d361c
51 changed files with 3644 additions and 84 deletions
|
|
@ -18,6 +18,7 @@ public class AbilityManager : MonoBehaviour
|
|||
return;
|
||||
}
|
||||
instance = this;
|
||||
DontDestroyOnLoad(this);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
@ -26,12 +27,23 @@ public class AbilityManager : MonoBehaviour
|
|||
public Button upgradeButton;
|
||||
[Header("Upgrades")]
|
||||
public AbilityUpgrade[] allUpgrades;
|
||||
public PlayerAbility[] allAbilities;
|
||||
[SerializeField] private PlayerAbility[] allAbilities;
|
||||
public Dictionary<String, PlayerAbility> abilityLookup = new();
|
||||
public Dictionary<String, AbilityUpgrade> upgradeLookup = new();
|
||||
public Dictionary<AbilityUpgrade, int> upgradesInventory = new();
|
||||
private void Start()
|
||||
{
|
||||
// upgradeButton.onClick.AddListener((() => AddUpgrade(upgradeToAdd, player.mainAttackInstance)));
|
||||
StoreUpgrade(upgradeToAdd);
|
||||
foreach (PlayerAbility ability in allAbilities)
|
||||
{
|
||||
abilityLookup[ability.abilityName] = ability;
|
||||
}
|
||||
|
||||
foreach (AbilityUpgrade upgrade in allUpgrades)
|
||||
{
|
||||
upgradeLookup[upgrade.upgradeName] = upgrade;
|
||||
}
|
||||
}
|
||||
|
||||
public void StoreUpgrade(AbilityUpgrade upgradeToStore)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue