30 lines
798 B
C#
30 lines
798 B
C#
using System.Collections.Generic;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace GameLogic
|
|
{
|
|
|
|
[CreateAssetMenu(fileName = "shelfConfig_", menuName = "数字孪生/ShelfConfig")]
|
|
public class So_ShelfConfig : SerializedScriptableObject
|
|
{
|
|
|
|
|
|
[LabelText(""), ShowInInspector] public string deviceCode;
|
|
[LabelText(""), ShowInInspector] public string deviceType = "STACKER";
|
|
[LabelText("货物所属工具组"),ShowInInspector] public List<int> groups = new List<int>();
|
|
[LabelText("伸缩动画"),ShowInInspector]public Dictionary<int,ShelfRowAnimData> shelfAnimDatas = new Dictionary<int, ShelfRowAnimData>();
|
|
|
|
|
|
|
|
public ShelfRowAnimData GetAnimaData(int row)
|
|
{
|
|
return shelfAnimDatas.GetValueOrDefault(row);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|