Files
harvestdale-unity/Assets/Scripts/PlaceableObject.cs
2023-02-15 19:39:10 +01:00

16 lines
390 B
C#

using UnityEngine;
[CreateAssetMenu(fileName = "New PlacableObject", menuName = "Harvestdale/PlaceableObjects", order = 0)]
public class PlaceableObject : ScriptableObject
{
public string objectName;
// public Sprite icon;
public GameObject prefab;
public int width;
public int height;
public Vector3Int GetSizeVector()
{
return new Vector3Int(width, height, 1);
}
}