This commit is contained in:
j.mei7
2022-03-13 14:56:10 +01:00
parent 25ce88501d
commit eb71cdbc9d
41 changed files with 1830 additions and 205 deletions

21
Assets/BuildingMenu.cs Normal file
View File

@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BuildingMenu : MonoBehaviour
{
[SerializeField] GameObject slotPrefab;
[SerializeField] List<PlacedObjectTypeSO> placedObjectTypeSOList;
void Start()
{
foreach(PlacedObjectTypeSO p in placedObjectTypeSOList)
{
GameObject slot = Instantiate(slotPrefab, gameObject.transform);
slot.GetComponent<BuildingMenuSlot>().placedObjectTypeSO = p;
}
}
}