Added item registry

This commit is contained in:
2026-04-18 12:52:28 +01:00
parent 1908024332
commit cd7f16f021
29 changed files with 187 additions and 53 deletions

View File

@@ -4,9 +4,12 @@ namespace Fruitomation.Game.Items
{
public class FruitBehaviour : ItemBehaviour
{
[SerializeField] private ItemType OverridenItemType;
protected override void OnInitialized()
{
Body2D.linearVelocity = Random.insideUnitCircle * 2.5f;
CurrentType = OverridenItemType;
}
}
}