mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-11-02 14:12:29 +01:00
added Warehouse
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user