From 4b08904de9a90e8f02b291cbb62cf7431a149c1e Mon Sep 17 00:00:00 2001 From: Pasha Bibko <156938226+PashaBibko@users.noreply.github.com> Date: Tue, 5 May 2026 10:01:54 +0100 Subject: [PATCH] Added unlock info to each button --- Assets/Prefabs/Buildings/Registry.asset | 11 + Assets/Scenes/UpgradesScene.unity | 218 +++++++++++++++--- .../Game/Buildings/BuildingRegistry.cs | 1 + Assets/Scripts/Game/UpgradeManager.cs | 13 ++ Assets/Scripts/UI/BasicUpgradeButton.cs | 8 +- Assets/Scripts/UI/UpgradeInfoBoard.cs | 22 ++ Assets/Scripts/UI/UpgradeInfoBoard.cs.meta | 3 + 7 files changed, 245 insertions(+), 31 deletions(-) create mode 100644 Assets/Scripts/UI/UpgradeInfoBoard.cs create mode 100644 Assets/Scripts/UI/UpgradeInfoBoard.cs.meta diff --git a/Assets/Prefabs/Buildings/Registry.asset b/Assets/Prefabs/Buildings/Registry.asset index f67718b..94afe43 100644 --- a/Assets/Prefabs/Buildings/Registry.asset +++ b/Assets/Prefabs/Buildings/Registry.asset @@ -15,45 +15,56 @@ MonoBehaviour: Buildings: - Name: Fan Requirement: 2 + Type: 0 Prefab: {fileID: 8624048914473773482, guid: 1b5c88b3f8d08674a9b15155d6ba9a36, type: 3} - Name: Stair Requirement: 0 + Type: 0 Prefab: {fileID: 2132872997366704715, guid: 3cf8228c3f6c43d4cb60319693b11828, type: 3} - Name: Wall Requirement: 0 + Type: 0 Prefab: {fileID: 1970033728917450326, guid: 3492b31295b69c148bb5a0660e598878, type: 3} - Name: Spring Requirement: 2 + Type: 0 Prefab: {fileID: 8624048914473773482, guid: 6060f6928011bf54dad9c5ef16fb1048, type: 3} - Name: Slicer Requirement: 0 + Type: 1 Prefab: {fileID: 8624048914473773482, guid: d26b0bb551b891e41a14009e6df42019, type: 3} - Name: Presser Requirement: 0 + Type: 2 Prefab: {fileID: 4125748828694197055, guid: a4c4117a8b12b324186385e04c3ede89, type: 3} - Name: Fermenter Requirement: 7 + Type: 6 Prefab: {fileID: 3120737319915985322, guid: b14b2be65581162469cf0e853bdeb24e, type: 3} - Name: Grinder Requirement: 5 + Type: 4 Prefab: {fileID: 4440782070338813379, guid: d25bbc19d1df47f46bef5870a410e4ba, type: 3} - Name: Freezer Requirement: 4 + Type: 3 Prefab: {fileID: 3206624505647374516, guid: eb59ecc0fb9acda43a01511f3f846b1d, type: 3} - Name: Mixer Requirement: 6 + Type: 5 Prefab: {fileID: 1231289801164129672, guid: 42cbc99b07e04604baf02f4ed170aac6, type: 3} - Name: Peeler Requirement: 8 + Type: 7 Prefab: {fileID: 7230295749174351428, guid: d26b3108e619653498c646cb86227d43, type: 3} diff --git a/Assets/Scenes/UpgradesScene.unity b/Assets/Scenes/UpgradesScene.unity index 5128b55..03515c7 100644 --- a/Assets/Scenes/UpgradesScene.unity +++ b/Assets/Scenes/UpgradesScene.unity @@ -1057,6 +1057,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 09000000 + Outputs: 0a000000 + Building: 3 RequiredUpgrades: - {fileID: 306312747} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -1219,6 +1222,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 0 BigText: 1 + Inputs: + Outputs: 05000000 + Building: 8 RequiredUpgrades: [] LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} Lines: [] @@ -1415,6 +1421,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 12000000 + Outputs: 14000000 + Building: 3 RequiredUpgrades: - {fileID: 1215656306} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -1692,6 +1701,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 1f000000 + Outputs: 21000000 + Building: 2 RequiredUpgrades: - {fileID: 531797809} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -1858,6 +1870,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 07000000 + Outputs: 1c000000 + Building: 1 RequiredUpgrades: - {fileID: 766041999} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -2099,6 +2114,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 01000000 + Outputs: 09000000 + Building: 1 RequiredUpgrades: - {fileID: 946556767} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -2533,6 +2551,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 02000000 + Outputs: 0e000000 + Building: 3 RequiredUpgrades: - {fileID: 1077588040} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -2891,6 +2912,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 07000000 + Outputs: 1d000000 + Building: 4 RequiredUpgrades: - {fileID: 766041999} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -3336,6 +3360,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 20000000 + Outputs: 22000000 + Building: 2 RequiredUpgrades: - {fileID: 531797809} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -3498,6 +3525,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 06000000 + Outputs: 1f00000020000000 + Building: 7 RequiredUpgrades: - {fileID: 1805700036} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -3959,6 +3989,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 04000000 + Outputs: 19000000 + Building: 1 RequiredUpgrades: - {fileID: 1342376329} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -4521,6 +4554,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 02000000 + Outputs: 0c000000 + Building: 2 RequiredUpgrades: - {fileID: 1077588040} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -4722,6 +4758,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 1b0000001c0000001e00000019000000 + Outputs: 25000000 + Building: 5 RequiredUpgrades: - {fileID: 1552666745} - {fileID: 282988162} @@ -5129,6 +5168,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 0 BigText: 1 + Inputs: + Outputs: 07000000 + Building: 8 RequiredUpgrades: [] LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} Lines: [] @@ -5291,6 +5333,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 140000001d000000 + Outputs: 26000000 + Building: 5 RequiredUpgrades: - {fileID: 239945582} - {fileID: 471231064} @@ -6433,6 +6478,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 0 BigText: 1 + Inputs: + Outputs: 01000000 + Building: 8 RequiredUpgrades: [] LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} Lines: [] @@ -6893,6 +6941,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 220000001d000000 + Outputs: 27000000 + Building: 5 RequiredUpgrades: - {fileID: 528476489} - {fileID: 471231064} @@ -7065,6 +7116,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 15000000 + Outputs: 18000000 + Building: 6 RequiredUpgrades: - {fileID: 1812298575} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -7355,6 +7409,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 100000 BigText: 1 + Inputs: + Outputs: 02000000 + Building: 8 RequiredUpgrades: [] LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} Lines: [] @@ -7587,6 +7644,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 03000000 + Outputs: 1200000011000000 + Building: 0 RequiredUpgrades: - {fileID: 1486581294} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -8376,6 +8436,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 0 BigText: 1 + Inputs: + Outputs: 04000000 + Building: 8 RequiredUpgrades: [] LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} Lines: [] @@ -8397,6 +8460,81 @@ MonoBehaviour: m_EffectColor: {r: 0.81960785, g: 0.5882353, b: 0.003921569, a: 1} m_EffectDistance: {x: 1, y: -1} m_UseGraphicAlpha: 1 +--- !u!1 &1369132765 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1369132766} + - component: {fileID: 1369132768} + - component: {fileID: 1369132767} + m_Layer: 5 + m_Name: Overlay + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1369132766 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1369132765} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1719094753} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 3840, y: 2160} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1369132767 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1369132765} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image + m_Material: {fileID: 0} + m_Color: {r: 0.23529412, g: 0.23529412, b: 0.23529412, a: 0.47058824} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1369132768 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1369132765} + m_CullTransparentMesh: 1 --- !u!1 &1377362334 GameObject: m_ObjectHideFlags: 0 @@ -8580,6 +8718,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 0c000000 + Outputs: 0d000000 + Building: 6 RequiredUpgrades: - {fileID: 683605715} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -8780,6 +8921,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 05000000 + Outputs: 1a000000 + Building: 2 RequiredUpgrades: - {fileID: 218329192} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -9142,6 +9286,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 10000000 BigText: 1 + Inputs: + Outputs: 03000000 + Building: 8 RequiredUpgrades: [] LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} Lines: [] @@ -9440,6 +9587,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 0b0000001a000000 + Outputs: 23000000 + Building: 5 RequiredUpgrades: - {fileID: 1992771926} - {fileID: 1449025487} @@ -9614,6 +9764,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 05000000 + Outputs: 1b000000 + Building: 1 RequiredUpgrades: - {fileID: 218329192} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -10325,7 +10478,6 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 1719094753} - - component: {fileID: 1719094755} - component: {fileID: 1719094754} m_Layer: 5 m_Name: BigUpgradeInfoBoard @@ -10345,7 +10497,8 @@ RectTransform: m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] + m_Children: + - {fileID: 1369132766} m_Father: {fileID: 1601651585} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} @@ -10362,35 +10515,10 @@ MonoBehaviour: m_GameObject: {fileID: 1719094752} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Script: {fileID: 11500000, guid: e4c6a04234de4d38a0c2efa098d3aed3, type: 3} m_Name: - m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image - m_Material: {fileID: 0} - m_Color: {r: 0.23529412, g: 0.23529412, b: 0.23529412, a: 0.5882353} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 0} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 ---- !u!222 &1719094755 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1719094752} - m_CullTransparentMesh: 1 + m_EditorClassIdentifier: Fruitomation::Fruitomation.UI.UpgradeInfoBoard + BoardGO: {fileID: 1369132765} --- !u!1 &1721077920 GameObject: m_ObjectHideFlags: 0 @@ -10532,6 +10660,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 08000000 + Outputs: 1e000000 + Building: 1 RequiredUpgrades: - {fileID: 2128693475} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -10695,6 +10826,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 0a0000000e00000010000000 + Outputs: 24000000 + Building: 5 RequiredUpgrades: - {fileID: 406517119} - {fileID: 216535976} @@ -10870,6 +11004,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 11000000 + Outputs: 13000000 + Building: 2 RequiredUpgrades: - {fileID: 1215656306} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -11032,6 +11169,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 0 BigText: 1 + Inputs: + Outputs: 06000000 + Building: 8 RequiredUpgrades: [] LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} Lines: [] @@ -11193,6 +11333,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 04000000 + Outputs: 1500000016000000 + Building: 2 RequiredUpgrades: - {fileID: 1342376329} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -11356,6 +11499,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 16000000 + Outputs: 17000000 + Building: 4 RequiredUpgrades: - {fileID: 1812298575} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -11522,6 +11668,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 1000 BigText: 0 + Inputs: 0f000000 + Outputs: 10000000 + Building: 3 RequiredUpgrades: - {fileID: 1836886870} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -11685,6 +11834,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 03000000 + Outputs: 0f000000 + Building: 1 RequiredUpgrades: - {fileID: 1486581294} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -12156,6 +12308,9 @@ MonoBehaviour: DrawDefaultLines: 0 Cost: 1000 BigText: 0 + Inputs: 01000000 + Outputs: 0b000000 + Building: 2 RequiredUpgrades: - {fileID: 946556767} LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} @@ -12544,6 +12699,9 @@ MonoBehaviour: DrawDefaultLines: 1 Cost: 0 BigText: 1 + Inputs: + Outputs: 08000000 + Building: 8 RequiredUpgrades: [] LineMaterial: {fileID: 2100000, guid: eb8c84c9b7bce8f4ab2641ccf50d239c, type: 2} Lines: [] diff --git a/Assets/Scripts/Game/Buildings/BuildingRegistry.cs b/Assets/Scripts/Game/Buildings/BuildingRegistry.cs index 66764c6..224dc96 100644 --- a/Assets/Scripts/Game/Buildings/BuildingRegistry.cs +++ b/Assets/Scripts/Game/Buildings/BuildingRegistry.cs @@ -10,6 +10,7 @@ namespace Fruitomation.Game { public string Name; public BuildingUnlock Requirement; + public AutomationBuildingType Type; public GameObject Prefab; } diff --git a/Assets/Scripts/Game/UpgradeManager.cs b/Assets/Scripts/Game/UpgradeManager.cs index 9dd04d5..33408ca 100644 --- a/Assets/Scripts/Game/UpgradeManager.cs +++ b/Assets/Scripts/Game/UpgradeManager.cs @@ -75,6 +75,19 @@ namespace Fruitomation.Game [Preserve] Peeler, } + [Serializable] public enum AutomationBuildingType + { + [Preserve] None, + [Preserve] Slicer, + [Preserve] Presser, + [Preserve] HeatExchanger, + [Preserve] Grinder, + [Preserve] Mixer, + [Preserve] Fermenter, + [Preserve] Peeler, + [Preserve] Spawner + } + public class UnlockedUpgrades { [Serializable] public class Serialized diff --git a/Assets/Scripts/UI/BasicUpgradeButton.cs b/Assets/Scripts/UI/BasicUpgradeButton.cs index f328dda..d9b818f 100644 --- a/Assets/Scripts/UI/BasicUpgradeButton.cs +++ b/Assets/Scripts/UI/BasicUpgradeButton.cs @@ -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; diff --git a/Assets/Scripts/UI/UpgradeInfoBoard.cs b/Assets/Scripts/UI/UpgradeInfoBoard.cs new file mode 100644 index 0000000..9719e57 --- /dev/null +++ b/Assets/Scripts/UI/UpgradeInfoBoard.cs @@ -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() + { + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/UI/UpgradeInfoBoard.cs.meta b/Assets/Scripts/UI/UpgradeInfoBoard.cs.meta new file mode 100644 index 0000000..dbfa0ce --- /dev/null +++ b/Assets/Scripts/UI/UpgradeInfoBoard.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: e4c6a04234de4d38a0c2efa098d3aed3 +timeCreated: 1777970079 \ No newline at end of file