From bb9a0a9de39aab10a94219468798162b9a85ca6f Mon Sep 17 00:00:00 2001 From: Pasha Date: Sat, 18 Apr 2026 20:04:39 +0100 Subject: [PATCH] Made apples be able to spawn --- Assets/Scripts/Game/Items/ItemBehaviour.cs | 6 ++++-- Assets/Scripts/Game/Items/SerializedItemInfoRegistry.cs | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Game/Items/ItemBehaviour.cs b/Assets/Scripts/Game/Items/ItemBehaviour.cs index 9dfd124..fc376f7 100644 --- a/Assets/Scripts/Game/Items/ItemBehaviour.cs +++ b/Assets/Scripts/Game/Items/ItemBehaviour.cs @@ -1,4 +1,5 @@ using Fruitomation.Global; +using PashaBibko.Pacore.Attributes; using UnityEngine; namespace Fruitomation.Game.Items @@ -13,8 +14,9 @@ namespace Fruitomation.Game.Items private CustomItemBehaviour CustomBehaviour; private GameObject CurrentChild; - - private ItemType InternalItemType; + + [SerializeField, InspectorReadOnly("Item Type")] + private ItemType InternalItemType = ItemType.None; public ItemType CurrentType { diff --git a/Assets/Scripts/Game/Items/SerializedItemInfoRegistry.cs b/Assets/Scripts/Game/Items/SerializedItemInfoRegistry.cs index 04dab1e..31ead0d 100644 --- a/Assets/Scripts/Game/Items/SerializedItemInfoRegistry.cs +++ b/Assets/Scripts/Game/Items/SerializedItemInfoRegistry.cs @@ -12,6 +12,8 @@ namespace Fruitomation.Game.Items [Serializable] public enum ItemType { + None, + Apple, Grape, Banana,