19 lines
609 B
C#
19 lines
609 B
C#
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "ShelfData", menuName = "Shop/Shelf Data", order = 1)]
|
|
public class ShelfData : ScriptableObject
|
|
{
|
|
public enum ShelfType { Shelf, Fridge, Freezer, Crate, Pallet }
|
|
public ShelfType shelfType;
|
|
|
|
public int rows = 4;
|
|
public int columns = 9;
|
|
public int levels = 1;
|
|
public Vector3 shelfSize = new Vector3(1.0f, 1.0f, 0.4f);
|
|
|
|
// Optional: manually set Y heights for each level (local space)
|
|
public float[] manualLevelHeights;
|
|
|
|
// New: offset for stack grid origin (local space)
|
|
public Vector3 stackOriginOffset = Vector3.zero;
|
|
} |