mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-29 12:52:07 +01:00
16 lines
390 B
C#
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);
|
|
}
|
|
} |