mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-30 04:57:09 +01:00
add grid building system
This commit is contained in:
16
Assets/Scripts/PlaceableObject.cs
Normal file
16
Assets/Scripts/PlaceableObject.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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 void Place()
|
||||
{
|
||||
Debug.Log("PLACE");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user