Scriptum/Assets/Scripts/SceneManager/SaveChest/ChestPrefarbAsset.cs

27 lines
750 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class ChestPrefarbAsset
{
[SerializeField]
public string name;
[SerializeField]
public string prefarbAssetName;
[SerializeField]
public Vector3 position;
[SerializeField]
public Dictionary<int, EquippableItemPrefarbAsset> content = new Dictionary<int, EquippableItemPrefarbAsset>();
public ChestPrefarbAsset() {}
public ChestPrefarbAsset(string _name, string _prefarbAssetName, Vector3 _position, Dictionary<int, EquippableItemPrefarbAsset> _content)
{
name = _name;
prefarbAssetName = _prefarbAssetName;
position = _position;
content = _content;
}
}