Added all upgrade buttons
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Fruitomation.Game
|
||||
{
|
||||
public class BasicUpgradeButton : MonoBehaviour
|
||||
{
|
||||
[Header("Settings")]
|
||||
[SerializeField] private BasicUpgrade Upgrade;
|
||||
[SerializeField] private int UpgradeCost;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
Button b = GetComponent<Button>();
|
||||
b.onClick.AddListener(() =>
|
||||
{
|
||||
UpgradeManager.Unlock(Upgrade);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9c5dbc6e19942c19f4dc93fc3777677
|
||||
timeCreated: 1776177196
|
||||
Reference in New Issue
Block a user