Added unlock info to each button
This commit is contained in:
@@ -5,6 +5,7 @@ using UnityEngine.UI;
|
||||
using UnityEngine;
|
||||
using System.Linq;
|
||||
using System;
|
||||
using Fruitomation.Game.Items;
|
||||
using Fruitomation.Global;
|
||||
using PashaBibko.Pacore.Attributes;
|
||||
|
||||
@@ -31,11 +32,16 @@ namespace Fruitomation.UI
|
||||
[SerializeField] private double Cost;
|
||||
[SerializeField] private bool BigText;
|
||||
|
||||
[Header("Unlock Info\n")]
|
||||
[SerializeField] private ItemType[] Inputs;
|
||||
[SerializeField] private ItemType[] Outputs;
|
||||
[SerializeField] private AutomationBuildingType Building;
|
||||
|
||||
[Header("References")]
|
||||
[SerializeField] private UpgradeInfoBoard UpgradeBoard;
|
||||
[SerializeField] private BasicUpgradeButton[] RequiredUpgrades;
|
||||
[SerializeField] private Material LineMaterial;
|
||||
|
||||
[Header("Lines")]
|
||||
[SerializeField] private LineInfo[] Lines;
|
||||
|
||||
private (LineRenderer, BasicUpgradeButton, LineInfo)[] UpgradeLines;
|
||||
|
||||
22
Assets/Scripts/UI/UpgradeInfoBoard.cs
Normal file
22
Assets/Scripts/UI/UpgradeInfoBoard.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Fruitomation.UI
|
||||
{
|
||||
public class UpgradeInfoBoard : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private GameObject BoardGO;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
BoardGO.SetActive(false);
|
||||
}
|
||||
|
||||
public void Enable()
|
||||
{
|
||||
}
|
||||
|
||||
public void Disable()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/UI/UpgradeInfoBoard.cs.meta
Normal file
3
Assets/Scripts/UI/UpgradeInfoBoard.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e4c6a04234de4d38a0c2efa098d3aed3
|
||||
timeCreated: 1777970079
|
||||
Reference in New Issue
Block a user