add grid building system

This commit is contained in:
Janis
2023-02-15 18:09:54 +01:00
parent 4b965000a1
commit 4572b0dc27
10 changed files with 583 additions and 466 deletions

View 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");
}
}