added Warehouse

This commit is contained in:
DerTyp187
2021-10-07 10:37:05 +02:00
parent 9efda5a8e2
commit 178534b33e
12 changed files with 232 additions and 763 deletions

View File

@@ -5,7 +5,7 @@ using UnityEngine;
public class WarehouseBuilding : StorageBuilding
{
private void Start()
public override void Init()
{
title = "Warehouse";
description = "A place to store your resources";

View File

@@ -2,14 +2,15 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StorageBuilding : Building
public abstract class StorageBuilding : Building
{
[SerializeField] private List<Item> inventory = new List<Item>();
public int inventorySpace;
public abstract void Init();
public override void OnStartUp()
{
Init();
}
public void Awake()