my HEAD hurts and the SFX is TOO LOUD
This commit is contained in:
parent
a3321d361c
commit
d4ebf0ca61
41 changed files with 1465 additions and 123 deletions
|
|
@ -1,5 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class ShopManager : MonoBehaviour
|
||||
{
|
||||
|
|
@ -20,12 +22,26 @@ public class ShopManager : MonoBehaviour
|
|||
|
||||
#endregion
|
||||
public List<AbilityUpgrade> buyableUpgrades;
|
||||
[SerializeField] private int maxBuyables;
|
||||
public int currency; //uh. we need to figure out this one lol
|
||||
public GameObject shopUIObject;
|
||||
[SerializeField] private Marisa player;
|
||||
[Header("UI")]
|
||||
public Transform upgradeListUI;
|
||||
public Button templateUpgradeButton;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
GenerateUpgradeList();
|
||||
}
|
||||
|
||||
public void GenerateUpgradeList()
|
||||
{
|
||||
|
||||
foreach (AbilityUpgrade upgrade in buyableUpgrades)
|
||||
{
|
||||
Button newButton = Instantiate(templateUpgradeButton, upgradeListUI);
|
||||
newButton.onClick.AddListener(() => BuyUpgrade(upgrade));
|
||||
}
|
||||
}
|
||||
|
||||
public void BuyUpgrade(AbilityUpgrade abilityToBuy)
|
||||
|
|
@ -55,4 +71,27 @@ public class ShopManager : MonoBehaviour
|
|||
shopUIObject.SetActive(false);
|
||||
player.stalled = false;
|
||||
}
|
||||
|
||||
public void UpgradesMenu()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void SellMenu()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void TalkMenu()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void ClearInventoryUI()
|
||||
{
|
||||
foreach (Transform child in upgradeListUI)
|
||||
{
|
||||
Destroy(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue