Player put items in basket with UI indication

This commit is contained in:
Vladimir Koshevarov
2023-03-05 17:21:00 +02:00
parent d7d0d8754b
commit 901e500d0e
21 changed files with 1223 additions and 618 deletions
+4 -3
View File
@@ -12,6 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: aec77d0318a147746a02df3c98dc1b76, type: 3}
m_Name: Cola
m_EditorClassIdentifier:
prefab: {fileID: 2680879424619819010, guid: 48940f42625c11541b2ebe92e86b6314, type: 3}
objectName: Cola
objectPrice: 10
Prefab: {fileID: 0}
ItemName: Cola
Price: 10
Icon: {fileID: 21300000, guid: 61282d9e9f6bd4d43aa75f43bbe7ab6c, type: 3}
@@ -5,6 +5,5 @@ public class ContainerSO : ScriptableObject
{
public string Name;
public int MaxCapacity;
public int CurrentItemsCount;
public Transform prefab;
}
@@ -3,7 +3,8 @@ using UnityEngine;
[CreateAssetMenu()]
public class SellableItemSO : ScriptableObject
{
public Transform prefab;
public string objectName;
public float objectPrice;
public Transform Prefab;
public string ItemName;
public float Price;
public Sprite Icon;
}
@@ -14,5 +14,4 @@ MonoBehaviour:
m_EditorClassIdentifier:
Name: Shoping basket
MaxCapacity: 5
CurrentItemsCount: 0
prefab: {fileID: 4771105611132447618, guid: cbfa04a0e789cc44a908f6953ea6e6a9, type: 3}