Made apples be able to spawn

This commit is contained in:
2026-04-18 20:04:39 +01:00
parent c3b971084e
commit bb9a0a9de3
2 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
using Fruitomation.Global; using Fruitomation.Global;
using PashaBibko.Pacore.Attributes;
using UnityEngine; using UnityEngine;
namespace Fruitomation.Game.Items namespace Fruitomation.Game.Items
@@ -14,7 +15,8 @@ namespace Fruitomation.Game.Items
private CustomItemBehaviour CustomBehaviour; private CustomItemBehaviour CustomBehaviour;
private GameObject CurrentChild; private GameObject CurrentChild;
private ItemType InternalItemType; [SerializeField, InspectorReadOnly("Item Type")]
private ItemType InternalItemType = ItemType.None;
public ItemType CurrentType public ItemType CurrentType
{ {

View File

@@ -12,6 +12,8 @@ namespace Fruitomation.Game.Items
[Serializable] public enum ItemType [Serializable] public enum ItemType
{ {
None,
Apple, Apple,
Grape, Grape,
Banana, Banana,