Net.Like.Xue.Tokyo/Packages-Local/Com.Project.B.Unity/Item/ScriptableCloth.cs

30 lines
712 B
C#

using System.Collections;
using System.Collections.Generic;
using Project.B.Item;
using UnityEngine;
namespace Net.Project.B.Item
{
public enum PlayerClothSlot
{
Cloth=11,
Armor=12,
Hat=13,
Backpack=14,
GearHolster=15,
}
public class ScriptableCloth : ScriptableItem
{
[Header(nameof(ScriptableCloth))]
[SerializeField] private PlayerClothSlot clothSlot;
[SerializeField] private Transform clothModel;
[SerializeField] private HumanBodyBones bone;
public int ClothSlot => (int)clothSlot;
public Transform ClothModel => clothModel?clothModel:Model;
public HumanBodyBones Bone => bone;
}
}